Re: How to add/drop SCSI drives from within the driver?

From: 'Patrick Mansfield' (patmans_at_us.ibm.com)
Date: 12/09/04

  • Next message: Ingo Molnar: "Re: [patch] Real-Time Preemption, -RT-2.6.10-rc2-mm3-V0.7.32-6"
    Date:	Thu, 9 Dec 2004 10:00:37 -0800
    To: "Mukker, Atul" <Atulm@lsil.com>
    
    

    On Thu, Dec 09, 2004 at 12:31:37PM -0500, Mukker, Atul wrote:

    > > How does the driver supply the mapping if it does not know
    > > about the "change"? Is it reserving or telling user space the
    > > hctl that will be used?
    > This point was thoroughly explained in my previous post item 2. Yes, driver
    > reserves a virtual bus on which all logical drives would be exported.

    OK ...

    > > If so, why can't the driver call scsi_add_device(h,c,t,l)
    > > after the ioctl to create the logical drive completes?
    > This idea was already turned down, see mails on linux-scsi on 12/3

    Well you can call scsi_add_device() from the driver, the objections I saw
    were to add an ioctl that would just call scsi_add_device().

    But it doesn't matter if adding driver post-ioctl specific actions is not
    an option.

    -- Patrick Mansfield
    -
    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: Ingo Molnar: "Re: [patch] Real-Time Preemption, -RT-2.6.10-rc2-mm3-V0.7.32-6"

    Relevant Pages

    • Re: [openib-general] Re: [PATCH][RFC][0/4] InfiniBand userspace verbs implementation
      ... That once the driver returns from the IOCtl, ... > unpinned within the context of the syscall which pinned the pages. ... the driver must be able to determine that the process has died ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: usage of WIN_SMART
      ... You can avoid the driver is you wish, but it's a really bad idea to do ... > regs, like u said, feature regs and all. ... can u help me out with the syntax of WIN_SMART class of ioctl? ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Kernel mode to user mode
      ... where they make sense in the context of using IoCtls for data passing also. ... An app passes an IoCtl to a driver initiating a series of tests that will ...
      (microsoft.public.development.device.drivers)
    • [RFC] dev_acpi: device driver for userspace access to ACPI
      ... The basic concept of operation is that the ioctl operates on the ACPI ... The sample, proof-of-concept app, is called acpitree. ... You can find the driver and sample app here: ...
      (Linux-Kernel)
    • Re: Accessing Ndis miniport from user mode application
      ... sticking to WMI, you confine yourself to strictly defined model - there are ... driver can indicate. ... to you - as I told you already, you should go for IOCTL model. ... Accessing custom OIDS through WMI. ...
      (microsoft.public.development.device.drivers)