This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: mkcramfs porting done - device file issues....


On Tue, May 28, 2002 at 11:12:22PM -0400, Christopher Faylor wrote:
> On Mon, Apr 29, 2002 at 03:52:27AM +0200, gmx wrote:
> >Under Linux i have devices under /dev which possibly point to 'nirvana'
> >(because there is no appropriate kernel feature/mod).  Why should't i
> >have such "dummy-dev`s" under cygwin ?
> 
> Cygwin doesn't have major and minor device numbers.

That's not quite correct.

Cygwin is using major and minor device numbers but there's nothing
like a device node in the filesystem.  The handling of major and
minor device numbers is purely internally.  What you *can* do is,
create a /dev directory and create (in Windows Explorer) files in
it which are named exactly as the devices known to Cygwin.  E. g.
if you created a file called `st0' - the name of the first tape
device in the system - then you can call `ls -l /dev' and you will
see:

  total 0
  crw-rw-rw-    1 root     root      18,   0 May 29 10:05 st0

The cause is that the handling of devices overrides the path
handling.  But that's *only* possible for device names known
to Cygwin.

> >Isn't this "feature" implemented yet and can it be easily implemented ?
> 
> It isn't implemented and it would be difficult to implement.  Sorry.

We discussed to implement something like loadable device drivers
already two years ago and which could be implemented using device
nodes.  It's not implemented though...  no time, no volunteers.

What would be possible is to add only the device nodes.  They could
be implemented like symlinks but I'm reluctant to add these to
Cygwin as long as there's no mechanism to actually use them.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]