Linux Kernel
3.7.1
|
Go to the source code of this file.
Data Structures | |
struct | ccwgroup_device |
struct | ccwgroup_driver |
Macros | |
#define | to_ccwgroupdev(x) container_of((x), struct ccwgroup_device, dev) |
#define | to_ccwgroupdrv(x) container_of((x), struct ccwgroup_driver, driver) |
Functions | |
int | ccwgroup_driver_register (struct ccwgroup_driver *cdriver) |
void | ccwgroup_driver_unregister (struct ccwgroup_driver *cdriver) |
int | ccwgroup_create_dev (struct device *root, struct ccwgroup_driver *gdrv, int num_devices, const char *buf) |
int | ccwgroup_probe_ccwdev (struct ccw_device *cdev) |
void | ccwgroup_remove_ccwdev (struct ccw_device *cdev) |
#define to_ccwgroupdev | ( | x | ) | container_of((x), struct ccwgroup_device, dev) |
Definition at line 65 of file ccwgroup.h.
#define to_ccwgroupdrv | ( | x | ) | container_of((x), struct ccwgroup_driver, driver) |
Definition at line 66 of file ccwgroup.h.
int ccwgroup_create_dev | ( | struct device * | parent, |
struct ccwgroup_driver * | gdrv, | ||
int | num_devices, | ||
const char * | buf | ||
) |
ccwgroup_create_dev() - create and register a ccw group device : parent device for the new device : driver for the new group device : number of slave devices : buffer containing comma separated bus ids of slave devices
Create and register a new ccw group device as a child of . Slave devices are obtained from the list of bus ids given in . Returns: %0 on success and an error code on failure. Context: non-atomic
Definition at line 293 of file ccwgroup.c.
int ccwgroup_driver_register | ( | struct ccwgroup_driver * | cdriver | ) |
ccwgroup_driver_register() - register a ccw group driver : driver to be registered
This function is mainly a wrapper around driver_register().
Definition at line 532 of file ccwgroup.c.
void ccwgroup_driver_unregister | ( | struct ccwgroup_driver * | cdriver | ) |
ccwgroup_driver_unregister() - deregister a ccw group driver : driver to be deregistered
This function is mainly a wrapper around driver_unregister().
Definition at line 552 of file ccwgroup.c.
int ccwgroup_probe_ccwdev | ( | struct ccw_device * | cdev | ) |
ccwgroup_probe_ccwdev() - probe function for slave devices : ccw device to be probed
This is a dummy probe function for ccw devices that are slave devices in a ccw group device. Returns: always %0
Definition at line 581 of file ccwgroup.c.
void ccwgroup_remove_ccwdev | ( | struct ccw_device * | cdev | ) |
ccwgroup_remove_ccwdev() - remove function for slave devices : ccw device to be removed
This is a remove function for ccw devices that are slave devices in a ccw group device. It sets the ccw device offline and also deregisters the embedding ccw group device.
Definition at line 595 of file ccwgroup.c.