Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

struct_ccw_driver(9) [suse man page]

STRUCT 
CCW_DRIVER(9) The ccw bus STRUCT CCW_DRIVER(9) NAME
struct_ccw_driver - device driver for channel attached devices SYNOPSIS
struct ccw_driver { struct module * owner; struct ccw_device_id * ids; int (* probe) (struct ccw_device *); void (* remove) (struct ccw_device *); int (* set_online) (struct ccw_device *); int (* set_offline) (struct ccw_device *); int (* notify) (struct ccw_device *, int); void (* shutdown) (struct ccw_device *); int (* prepare) (struct ccw_device *); void (* complete) (struct ccw_device *); int (* freeze) (struct ccw_device *); int (* thaw) (struct ccw_device *); int (* restore) (struct ccw_device *); struct device_driver driver; char * name; }; MEMBERS
owner owning module ids ids supported by this driver probe function called on probe remove function called on remove set_online called when setting device online set_offline called when setting device offline notify notify driver of device state changes shutdown called at device shutdown prepare prepare for pm state transition complete undo work done in prepare freeze callback for freezing during hibernation snapshotting thaw undo work done in freeze restore callback for restoring after hibernation driver embedded device driver structure name device driver name AUTHOR
Cornelia Huck <cornelia.huck@de.ibm.com> Author. COPYRIGHT
Kernel Hackers Manual 2.6. July 2010 STRUCT CCW_DRIVER(9)

Check Out this Related Man Page

STRUCT 
SPI_DRIVER(9) Serial Peripheral Interface (S STRUCT SPI_DRIVER(9) NAME
struct_spi_driver - Host side "protocol" driver SYNOPSIS
struct spi_driver { const struct spi_device_id * id_table; int (* probe) (struct spi_device *spi); int (* remove) (struct spi_device *spi); void (* shutdown) (struct spi_device *spi); int (* suspend) (struct spi_device *spi, pm_message_t mesg); int (* resume) (struct spi_device *spi); struct device_driver driver; }; MEMBERS
id_table List of SPI devices supported by this driver probe Binds this driver to the spi device. Drivers can verify that the device is actually present, and may need to configure characteristics (such as bits_per_word) which weren't needed for the initial configuration done during system setup. remove Unbinds this driver from the spi device shutdown Standard shutdown callback used during system state transitions such as powerdown/halt and kexec suspend Standard suspend callback used during system state transitions resume Standard resume callback used during system state transitions driver SPI device drivers should initialize the name and owner field of this structure. DESCRIPTION
This represents the kind of device driver that uses SPI messages to interact with the hardware at the other end of a SPI link. It's called a "protocol" driver because it works through messages rather than talking directly to SPI hardware (which is what the underlying SPI controller driver does to pass those messages). These protocols are defined in the specification for the device(s) supported by the driver. As a rule, those device protocols represent the lowest level interface supported by a driver, and it will support upper level interfaces too. Examples of such upper levels include frameworks like MTD, networking, MMC, RTC, filesystem character device nodes, and hardware monitoring. COPYRIGHT
Kernel Hackers Manual 2.6. July 2010 STRUCT SPI_DRIVER(9)
Man Page

4 More Discussions You Might Find Interesting

1. Programming

freeBSD device driver (use struct uio)

Hi, everybody I have next problem... 1) My Example program code void main() { int fd; int len; int buf; fd=open("mydev", O_RDONLY); lseek(fd, 0, SEEK_SET); len=read(fd, buf, sizeof(buf)); } 2) My Example Driver code static int mydev_read(dev_t dev, ?, ?, struct uio* uio) {... (0 Replies)
Discussion started by: Alex_T
0 Replies

2. Shell Programming and Scripting

-1 returned from fetchall_arrayraf

Hi all, below is my PERL script $ids = $dbh->prepare ("select * from tableA"); $ids->execute(); $names = $ids->fetchall_arrayref(); print " Total valid ids is $#names \n"; Table only has 1 column, approx 400 rows the value of $#names is -1. Would anyone point out what could have caused the... (1 Reply)
Discussion started by: new2ss
1 Replies

3. SCO

Panic: k_trap; unable to freeze processor

I shutdown my sco 5.0.7 machine about a month and a half ago and upon bringing it back up got the following kernel panic: Panic: k_trap - Kernel mode trap type0x0000000E Unable to freeze processor 2, proceeding.... Cannot dump ?????? pages (I don't remember how many pages it was) Dump not... (0 Replies)
Discussion started by: powwm
0 Replies

4. Shell Programming and Scripting

Computations on a text file

hey, I have text file which has some data for some device Id's. i want to perform AVG, MAX,2nd MAX on these device ids. The .txt file looks like below. please help me in finding the computations per Device id. My output file should contatin with DeviceID,Avg, max and 2nd max of the device ID.... (8 Replies)
Discussion started by: mahi_mayu069
8 Replies