Re: Should osst call cdev_alloc()

From: Willem Riede (wrlk_at_riede.org)
Date: 10/23/04

  • Next message: Paul E. McKenney: "Re: [patch] Real-Time Preemption, -RT-2.6.9-mm1-U10.2"
    Date:	Sat, 23 Oct 2004 21:14:53 +0000
    To: Kai Makisara <Kai.Makisara@kolumbus.fi>
    
    

    On 10/23/2004 04:56:06 PM, Kai Makisara wrote:
    > On Sat, 23 Oct 2004, Willem Riede wrote:
    >
    > > Currently, sg.c and st.c contain calls to cdev_alloc() and friends:
    > >
    > > My question is: should osst do the same? It seems to work just fine
    > without.
    > >
    > The reason why st.c calls cdev_alloc() directly is that this allows it to
    > use the large minor numbers (some people want to use more than 32 tapes).
    > This also used to give presence in sysfs but that is not the case any
    > more. The devices can be shown in sysfs using device classes (st.c uses
    > the class_simple_* functions).
    >
    > Osst does call cdev_alloc() indirectly through register_chrdev(). This is
    > the link between the "old style" character device allocation and the
    > current method. As long as register_chrdev() exists, you don't have any
    > pressing need to change osst unless you want to support more than 256
    > minors.

    Thanks. Given that the Onstream devices were targeted at the low end market, I
    see no need to support many drives of this type, so I'll leave it as it is.

    Willem Riede.

    -
    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/


  • Next message: Paul E. McKenney: "Re: [patch] Real-Time Preemption, -RT-2.6.9-mm1-U10.2"

    Relevant Pages

    • Re: x86_64: 32bit emulation problems
      ... I can see no good reason for truncating inode number values on platforms ... that actually do support 64-bit inode numbers, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 4level page tables for Linux
      ... >> a particular reason to be different from them. ... Linux should support N levels. ... We are duplicating code for pgd, pmd, pte and now pml again and again. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [PATCH] add legacy resource support to sysfs
      ... This sits on top of my last two patches to sysfs (the one that adds mmap ... support and the one that exports PCI resources in sysfs). ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] i386: single node SPARSEMEM fix
      ... Martin J. Bligh wrote: ... >> The reason we haven't included this so far is that we don't really have ... This is essential in order for the distros to support it - same ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH 2.6 RFT] QIC-02 tape drive hookup to classes in sysfs
      ... > support in sysfs. ... I have verified it compiles. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)