[lkml]   [2002]   [Feb]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectAsynchronous CDROM Events in Userland

    Is there any way, other than by polling, to have a user process be
    notified of a change in status on a cdrom drive? (Such as if the drive
    opens, closes, gets new media, etc)?

    Also, come think of it, other types of asynchronous events would be nice
    too, like when a cdrom usb device gets hot-plugged into the system, etc.

    The current ioctls are inadequate for this type of thing (they are
    synchronous in nature). One nice thing would be if we can register SIGUSR
    or other types of signals with the cdrom driver(s) so that it can notify a
    user process of (cdrom) events it may be interested in.

    The reason I ask this is that the current autorun program that comes with
    kde is very inefficient because it polls the cdrom drives. Also, this
    program is completely unable to determine that a usb device has come
    online, because it basically can't differentiate between bogus /etc/fstab
    entries and offline usb devices.

    At any rate, if anyone can suggest a way to asynchronously receive cdrom
    events in userland, it would be appreciated.

    If not what do you guys think about extensions to the cdrom drivers to
    handle these types of things?

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:23    [W:0.044 / U:62.280 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site