Visit Our UNIX and Linux User Community

Linux and UNIX Man Pages

Test Your Knowledge in Computers #653
Difficulty: Easy
Rocky Raccoon is the mascot of MINIX 3.
True or False?
Linux & Unix Commands - Search Man Pages

struct_ccwgroup_driver(9) [centos man page]

STRUCT 
CCWGROUP_DRIV(9) The ccwgroup bus STRUCT CCWGROUP_DRIV(9) NAME
struct_ccwgroup_driver - driver for ccw group devices SYNOPSIS
struct ccwgroup_driver { int (* setup) (struct ccwgroup_device *); void (* remove) (struct ccwgroup_device *); int (* set_online) (struct ccwgroup_device *); int (* set_offline) (struct ccwgroup_device *); void (* shutdown) (struct ccwgroup_device *); int (* prepare) (struct ccwgroup_device *); void (* complete) (struct ccwgroup_device *); int (* freeze) (struct ccwgroup_device *); int (* thaw) (struct ccwgroup_device *); int (* restore) (struct ccwgroup_device *); struct device_driver driver; }; MEMBERS
setup function called during device creation to setup the device remove function called on remove set_online function called when device is set online set_offline function called when device is set offline shutdown function called when device is shut down 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 driver structure AUTHOR
Cornelia Huck <cornelia.huck@de.ibm.com> Author. COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 STRUCT CCWGROUP_DRIV(9)

Check Out this Related Man Page

STRUCT 
DEVICE_DRIVER(9) Device drivers infrastructure STRUCT DEVICE_DRIVER(9) NAME
struct_device_driver - The basic device driver structure SYNOPSIS
struct device_driver { const char * name; struct bus_type * bus; struct module * owner; const char * mod_name; bool suppress_bind_attrs; const struct of_device_id * of_match_table; const struct acpi_device_id * acpi_match_table; int (* probe) (struct device *dev); int (* remove) (struct device *dev); void (* shutdown) (struct device *dev); int (* suspend) (struct device *dev, pm_message_t state); int (* resume) (struct device *dev); const struct attribute_group ** groups; const struct dev_pm_ops * pm; struct driver_private * p; }; MEMBERS
name Name of the device driver. bus The bus which the device of this driver belongs to. owner The module owner. mod_name Used for built-in modules. suppress_bind_attrs Disables bind/unbind via sysfs. of_match_table The open firmware table. acpi_match_table The ACPI match table. probe Called to query the existence of a specific device, whether this driver can work with it, and bind the driver to a specific device. remove Called when the device is removed from the system to unbind a device from this driver. shutdown Called at shut-down time to quiesce the device. suspend Called to put the device to sleep mode. Usually to a low power state. resume Called to bring a device from sleep mode. groups Default attributes that get created by the driver core automatically. pm Power management operations of the device which matched this driver. p Driver core's private data, no one other than the driver core can touch this. DESCRIPTION
The device driver-model tracks all of the drivers known to the system. The main reason for this tracking is to enable the driver core to match up drivers with new devices. Once drivers are known objects within the system, however, a number of other things become possible. Device drivers can export information and configuration variables that are independent of any specific device. COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 STRUCT DEVICE_DRIVER(9)

6 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. Programming

struct tm problem

I receive an integer as argument for a function. within function definition i want it to be of type struct tm. eg.. main() { int a; ...... } function(...,..,a,..) int a; { struct tm tm; if(!a) ^ time(&a); ^ ... (4 Replies)
Discussion started by: bankpro
4 Replies

3. AIX

remove device

Hello I need to remove a device (tape rmt0) for to put dinamic in another lpar but when I try to remove I get the next message I try also If there are some process about it but nothing. and before that the device was available and I put on defined status but the same thing I canīt remove it.... (3 Replies)
Discussion started by: lo-lp-kl
3 Replies

4. AIX

How to prepare for Test 190: AIX Basic Operations V5

Hi I like to sit for the exam Test 190: AIX Basic Operations V5. Could any one tell me how to prepare for that. It would be very helpful if I get a PDF. I have searched at redbooks.ibm.com but get nothing. thanks in advance suman (2 Replies)
Discussion started by: sumanbangladesh
2 Replies

5. 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

6. Red Hat

Can't boot RHEL7.2 due to "Start Job is Running"

Dear community, as already done tons of times, I prepare the RedHat installation on VMWare, then clone it with clonezilla, and finally restore it on final server. Due to different hrdware, I have to boot from rhel-server-7.4-x86_64-boot.iso cd and rewrite the initramfs that contains the hardware... (3 Replies)
Discussion started by: Lord Spectre
3 Replies

Featured Tech Videos