1- Notes on Management Module
2- ~~~~~~~~~~~~~~~~~~~~~~~~~~
1+ .. SPDX-License-Identifier: GPL-2.0
32
4- Overview:
3+ ==========================
4+ Notes on Management Module
5+ ==========================
6+
7+ Overview
58--------
69
710Different 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
2528interactions. So any 'proc', 'sysfs' implementations will be localized in this
2629common module.
2730
28- Credits:
31+ Credits
2932-------
3033
31- "Shared code in a third module, a "library module", is an acceptable
32- solution. modprobe automatically loads dependent modules, so users
33- running "modprobe driver1" or "modprobe driver2" would automatically
34- load the shared library module."
34+ ::
35+
36+ "Shared code in a third module, a "library module", is an acceptable
37+ solution. modprobe automatically loads dependent modules, so users
38+ running "modprobe driver1" or "modprobe driver2" would automatically
39+ load the shared library module."
40+
41+ - Jeff Garzik (jgarzik@pobox.com), 02.25.2004 LKML
3542
36- - Jeff Garzik (jgarzik@pobox.com), 02.25.2004 LKML
43+ ::
3744
38- "As Jeff hinted, if your userspace<->driver API is consistent between
39- your new MPT-based RAID controllers and your existing megaraid driver,
40- then perhaps you need a single small helper module (lsiioctl or some
41- better name), loaded by both mptraid and megaraid automatically, which
42- handles registering the /dev/megaraid node dynamically. In this case,
43- both mptraid and megaraid would register with lsiioctl for each
44- adapter discovered, and lsiioctl would essentially be a switch,
45- redirecting userspace tool ioctls to the appropriate driver."
45+ "As Jeff hinted, if your userspace<->driver API is consistent between
46+ your new MPT-based RAID controllers and your existing megaraid driver,
47+ then perhaps you need a single small helper module (lsiioctl or some
48+ better name), loaded by both mptraid and megaraid automatically, which
49+ handles registering the /dev/megaraid node dynamically. In this case,
50+ both mptraid and megaraid would register with lsiioctl for each
51+ adapter discovered, and lsiioctl would essentially be a switch,
52+ redirecting userspace tool ioctls to the appropriate driver."
4653
47- - Matt Domsch, (Matt_Domsch@dell.com), 02.25.2004 LKML
54+ - Matt Domsch, (Matt_Domsch@dell.com), 02.25.2004 LKML
4855
49- Design:
56+ Design
5057------
5158
5259The 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
6168applications into uioc_t. After driver handles the uioc_t, the common module
6269will convert that back into the old format before returning to applications.
6370
64- As new applications evolve and replace the old ones, the old packet format
71+ As new applications evolve and replace the old ones, the old packet format
6572will be retired.
6673
6774Common module dedicates one uioc_t packet to each controller registered. This
0 commit comments