[lkml]   [1999]   [Mar]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: your mail

    Alan Cox wrote:

    > > I have been writing a device driver for a specialty board we use here at my
    > > workplace. I am writing it as a module. Because of the possibility of a
    > > conflict with a MAJOR number, I want have the module ask for the next
    > > available MAJOR number. This causes problems because I have to provide a
    > > script which creates the device inode files in /dev.
    > This doesnt help you at all. Suppose you ask for the next number and take
    > the one a later module will need. There are a set of major numbers for
    > private/experimental use. Nobody should be shipping any actual production
    > drivers using these numbers.
    > Alan

    I was taking the advice of Alessandro Rubini in his book Linux Device Drivers. He

    suggested using dynamic allocation of major numbers by setting the major to zero
    the request_chrdev. Is this *not* the preferred method?


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

     \ /
      Last update: 2005-03-22 13:51    [W:0.019 / U:30.168 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site