Commit a756185d authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab Committed by Martin K. Petersen
parent b4adb757
...@@ -26,5 +26,6 @@ Linux SCSI Subsystem ...@@ -26,5 +26,6 @@ Linux SCSI Subsystem
libsas libsas
link_power_management_policy link_power_management_policy
lpfc lpfc
megaraid
scsi_transport_srp/figures scsi_transport_srp/figures
Notes on Management Module .. SPDX-License-Identifier: GPL-2.0
~~~~~~~~~~~~~~~~~~~~~~~~~~
Overview: ==========================
Notes on Management Module
==========================
Overview
-------- --------
Different classes of controllers from LSI Logic accept and respond to the Different classes of controllers from LSI Logic accept and respond to the
...@@ -25,28 +28,32 @@ ioctl commands. But this module is envisioned to handle all user space level ...@@ -25,28 +28,32 @@ ioctl commands. But this module is envisioned to handle all user space level
interactions. So any 'proc', 'sysfs' implementations will be localized in this interactions. So any 'proc', 'sysfs' implementations will be localized in this
common module. common module.
Credits: Credits
------- -------
"Shared code in a third module, a "library module", is an acceptable ::
solution. modprobe automatically loads dependent modules, so users
running "modprobe driver1" or "modprobe driver2" would automatically "Shared code in a third module, a "library module", is an acceptable
load the shared library module." solution. modprobe automatically loads dependent modules, so users
running "modprobe driver1" or "modprobe driver2" would automatically
load the shared library module."
- Jeff Garzik (jgarzik@pobox.com), 02.25.2004 LKML
- Jeff Garzik (jgarzik@pobox.com), 02.25.2004 LKML ::
"As Jeff hinted, if your userspace<->driver API is consistent between "As Jeff hinted, if your userspace<->driver API is consistent between
your new MPT-based RAID controllers and your existing megaraid driver, your new MPT-based RAID controllers and your existing megaraid driver,
then perhaps you need a single small helper module (lsiioctl or some then perhaps you need a single small helper module (lsiioctl or some
better name), loaded by both mptraid and megaraid automatically, which better name), loaded by both mptraid and megaraid automatically, which
handles registering the /dev/megaraid node dynamically. In this case, handles registering the /dev/megaraid node dynamically. In this case,
both mptraid and megaraid would register with lsiioctl for each both mptraid and megaraid would register with lsiioctl for each
adapter discovered, and lsiioctl would essentially be a switch, adapter discovered, and lsiioctl would essentially be a switch,
redirecting userspace tool ioctls to the appropriate driver." redirecting userspace tool ioctls to the appropriate driver."
- Matt Domsch, (Matt_Domsch@dell.com), 02.25.2004 LKML - Matt Domsch, (Matt_Domsch@dell.com), 02.25.2004 LKML
Design: Design
------ ------
The Common Management Module is implemented in megaraid_mm.[ch] files. This The Common Management Module is implemented in megaraid_mm.[ch] files. This
...@@ -61,7 +68,7 @@ uioc_t. The management module converts the older ioctl packets from the older ...@@ -61,7 +68,7 @@ uioc_t. The management module converts the older ioctl packets from the older
applications into uioc_t. After driver handles the uioc_t, the common module applications into uioc_t. After driver handles the uioc_t, the common module
will convert that back into the old format before returning to applications. will convert that back into the old format before returning to applications.
As new applications evolve and replace the old ones, the old packet format As new applications evolve and replace the old ones, the old packet format
will be retired. will be retired.
Common module dedicates one uioc_t packet to each controller registered. This Common module dedicates one uioc_t packet to each controller registered. This
......
...@@ -10639,7 +10639,7 @@ L: megaraidlinux.pdl@broadcom.com ...@@ -10639,7 +10639,7 @@ L: megaraidlinux.pdl@broadcom.com
L: linux-scsi@vger.kernel.org L: linux-scsi@vger.kernel.org
W: http://www.avagotech.com/support/ W: http://www.avagotech.com/support/
S: Maintained S: Maintained
F: Documentation/scsi/megaraid.txt F: Documentation/scsi/megaraid.rst
F: drivers/scsi/megaraid.* F: drivers/scsi/megaraid.*
F: drivers/scsi/megaraid/ F: drivers/scsi/megaraid/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment