lkml.org 
[lkml]   [2003]   [Dec]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: udev sysfs docs Re: State of devfs in 2.6?
    Date
    Matthew Reppert <repp0017@tc.umn.edu> writes:

    >> >From the udev FAQ:
    >> >
    >> >Q: But udev will not automatically load a driver if a /dev node is opened
    >> > when it is not present like devfs will do.
    >> >A: If you really require this functionality, then use devfs. It is still
    >> > present in the kernel.
    >> >
    >> >Will it have this 'equivalent functionality' some day?

    That's one thing I like about devfs.

    >> Shouldn't hotplug handle it?
    >
    > How would hotplug handle it?
    >
    > Or, more directly ... on my system, /dev is just a normal directory
    > on an ext2 filesystem. If something tries to open a file on it that
    > doesn't exist, open will just return ENOENT. How is open supposed to
    > know that someone is trying to open a device node? The naive solution
    > is to conditionally check for the presence of "/dev" at the beginning
    > of all requested filenames that don't exist, which strikes me as ...
    > well, not necessarily a good idea. (I can't really say why beyond gut
    > feeling.)

    One solution could be to make new virtual fs, say udevfs, which would
    be tmpfs, plus it would run modprobe when you try to open missing
    files. Then again, maybe I've missed something that makes this a bad
    idea.

    --
    Måns Rullgård
    mru@kth.se

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:59    [W:3.528 / U:0.012 seconds]
    ©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site