lkml.org 
[lkml]   [1998]   [Jun]   [14]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateSun, 14 Jun 1998 17:25:05 +1000
FromRichard Gooch <>
SubjectRe: Can I open a special file with major/minor instead of name?
Dave Cinege writes:
> This is the code in do_linuxrc():
> 
> (void) open("/dev/tty1",O_RDWR,0);
> 
> This is what I want to do:
> 
> (void) open( MKDEV(TTY_MAJOR,1) ,O_RDWR,0);
> 
> This is why:
> I build all of /dev from /linuxrc, thus /dev/tty1 does not yet exist.
> Right now I have a work around but this way would be cleaner.

Why not use devfs?

				Regards,

					Richard....
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 12:43    [from the cache]
©2003-2008