[lkml]   [2001]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: LANANA: To Pending Device Number Registrants
    > But the fact remains that some users want to (a) avoid devfs and (b) have
    > static maintenance. And I'm ok with that too, but only if the static major
    > number is in the form of a _generic_ number that has absolutely nothing to
    > do with any specific drivers (which is why I'd be perfecly ok with still
    > adding a "disk" major number, but which is why I do NOT want to have Peter
    > give out "the random number of today" to various stupid device drivers).
    > So we seem to be in violent agreement here.


    Then we need to open the second discussion which is:

    Given a file handle 'X' how do I find out what ioctl groups I should apply to
    it. So we can go from

    if(MAJOR(st.st_rdev) == ST_MAJOR)
    else if(MAJOR(st.st_rdev) == FTAPE_MAJOR)
    else ..


    /* Use scsi if possible [scsi, ide-scsi, usb-scsi, ...] */
    if(HAS_FEATURE_SET(fd, "scsi-tape"))
    else if(HAS_FEATURE_SET(fd, "floppy-tape"))


    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 12:53    [W:0.022 / U:10.388 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site