Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cardmgr(8) [redhat man page]

CARDMGR(8)						      System Manager's Manual							CARDMGR(8)

cardmgr - PCMCIA device manager SYNOPSIS
cardmgr [-V] [-q] [-d] [-o] [-f] [-v] [-c configpath] [-m modpath] [-p pidfile] [-s stabfile] DESCRIPTION
Cardmgr monitors PCMCIA sockets for card insertion and removal events. When a card is inserted, cardmgr looks up the card in a database of known cards. If the card can be identified, appropriate device drivers will be loaded and bound to the card. When a card is ejected, that card's drivers will be shut down and unloaded if possible. Based on the contents of the PCMCIA card configuration database, cardmgr may also execute arbitrary commands when appropriate cards are either inserted or removed. All insertion and removal events, device driver loads and unloads, and startup and shutdown commands are reported in the system log file. Warnings and errors will also be logged. Current card and device information for each socket is recorded in /var/lib/pcmcia/stab. Normally, when a card is identified, cardmgr will send a beep to the console. A beep is also generated when a card is successfully config- ured. A beep of lower pitch is generated if either of these steps fails. Ejecting a card produces a single beep. When cardmgr receives a SIGHUP signal, it will reload its configuration file. When cardmgr receives a SIGTERM signal, it will shut down all sockets that are not busy and then exit, but drivers for busy sockets will stay loaded. If the PCMCIA_OPTS environment variable is set, its contents will be parsed after the main card configuration file is read. At startup, cardmgr requires that /tmp reside on a filesystem that permits special device files (i.e., a real linux filesystem, that is not mounted "nodev"). OPTIONS
-V Show version information and exit. -q Quiet mode: don't beep when cards are inserted. -v Verbose mode: generates more informational messages during normal operation. Configuration scripts are executed with VERBOSE=y. -d Follow module dependencies when loading driver modules, by defaulting to use modprobe instead of insmod. Normally, cardmgr will try using modprobe only after an unsuccessful attempt with insmod. -f Foreground: do not fork and run as a daemon until after configuring any cards that are already present. -o One pass: configure cards that are present, then exit. This flag also forces cardmgr to run in the foreground. -c configpath Look for the card configuration database and card configuration scripts in the specified directory, instead of /etc/pcmcia. -m modpath Look for loadable kernel modules in the specified directory, instead of /lib/modules/`uname -r`. -p pidfile Write the PID of the cardmgr process to the specified file, instead of /var/run/ -s stabfile Write current socket information to the specified file, instead of /var/lib/pcmcia/stab. FILES
/etc/pcmcia/config Card configuration database /etc/pcmcia/config.opts Local resource settings for PCMCIA devices /var/run/ PID of active cardmgr process /var/lib/pcmcia/stab Current card and device information for each socket. AUTHOR
David Hinds - SEE ALSO
pcmcia(5), stab(5), cardctl(8), cardinfo(1). pcmcia-cs 2001/07/19 23:41:34 CARDMGR(8)

Check Out this Related Man Page

MEMORY_CS(4)						     Kernel Interfaces Manual						      MEMORY_CS(4)

memory_cs - MTD-aware PCMCIA memory card driver SYNOPSIS
insmod memory_cs.o [pc_debug=n] [mem_speed=n] [word_width=n] [force_size=n] DESCRIPTION
Memory_cs is the Card Services driver for PCMCIA memory cards, and also provides direct memory access for other types of cards. It pro- vides character-mode and block-mode for accessing any card's attribute and common memory address spaces, analogous to /dev/mem. Memory_cs will allocate a free major device number when it is loaded. It provides two types of minor devices: "direct" character-mode devices for raw access a card's entire PCMCIA common and attribute memory spaces, and "indirect" devices for accessing specific memory partitions via an appropriate Memory Technology Driver. The bitwise layout of minor device numbers is one memory device. 'x' is set if this is a direct- access device, 'a' is set for attribute memory, and 'rr' is the region number (for indirect devices). When memory_cs is bound to a card, it will report its major and minor device numbers to cardmgr(8). The default memory card initialization script creates character special device files for the direct common memory and attribute memory devices. It also creates character special devices for accessing the first attribute and common memory partitions, and a block device for accessing the first common memory partition. These devices have the following names: /dev/mem#c Common memory direct access, character special device. /dev/mem#a Attribute memory direct access, character special device. /dev/mem#c0c Common memory region 0, character special device. /dev/mem#c0b Common memory region 0, block special device. /dev/mem#a0c Attribute memory region 0, character special device. The block special device for a card's common memory can be used to create a filesystem on a card, and the device can be mounted in much the same way as a floppy disk. In some cases, you may need to explicitly specify the card's capacity when creating a filesystem. The character special devices can be used to read and write arbitrary numbers of bytes to arbitrary locations. For devices that need to be explicitly erased before writing, if a write request is aligned and sized on erase block boundaries for the target memory card, the driver will erase the target region before writing to the card. Since any PCMCIA card can be accessed as a memory card, memory_cs can be bound to any card regardless of function, and regardless of what other drivers might also be bound to that card. For example, this driver can be bound to a card and then used to read out the contents of the card's attribute memory. PARAMETERS
pc_debug=n Selects the PCMCIA debugging level. This parameter is only available if the module is compiled with debugging enabled. A non-zero value enables debugging. mem_speed=n Sets the access speed of the shared memory window for direct access devices, in nanoseconds. The default is 0 (i.e., no extra wait states). Values of up to 1000 are legal. word_width=n A flag indicating if direct access devices should be configured for 8-bit (if 0) or 16-bit (if 1) transfers. The default is 1 (16-bit). force_size=n Explicitly specifies the size of a simple SRAM card, skipping the default (and sometimes unreliable) size check. IOCTLS
These are defined in <pcmcia/memory.h>. MEMGETINFO This takes an argument of type (region_info_t *), defined in <pcmcia/bulkmem.h>. The structure will be filled in with memory region information for this device, such as access speed, erase block size, and JEDEC identifiers. MEMERASE This takes an argument of type (erase_info_t *), specifying the offset and length of a memory region to be erased. AUTHOR
David Hinds - SEE ALSO
cardmgr(8), pcmcia(5), memory_cb(4). pcmcia-cs 2000/06/12 21:24:48 MEMORY_CS(4)
Man Page