Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
hotplug_slot_ops Struct Reference

#include <pci_hotplug.h>

Data Fields

struct moduleowner
 
const charmod_name
 
int(* enable_slot )(struct hotplug_slot *slot)
 
int(* disable_slot )(struct hotplug_slot *slot)
 
int(* set_attention_status )(struct hotplug_slot *slot, u8 value)
 
int(* hardware_test )(struct hotplug_slot *slot, u32 value)
 
int(* get_power_status )(struct hotplug_slot *slot, u8 *value)
 
int(* get_attention_status )(struct hotplug_slot *slot, u8 *value)
 
int(* get_latch_status )(struct hotplug_slot *slot, u8 *value)
 
int(* get_adapter_status )(struct hotplug_slot *slot, u8 *value)
 

Detailed Description

struct hotplug_slot_ops -the callbacks that the hotplug pci core can use : The module owner of this structure : The module name (KBUILD_MODNAME) of this structure : Called when the user wants to enable a specific pci slot : Called when the user wants to disable a specific pci slot : Called to set the specific slot's attention LED to the specified value : Called to run a specified hardware test on the specified slot. : Called to get the current power status of a slot. If this field is NULL, the value passed in the struct hotplug_slot_info will be used when this value is requested by a user. : Called to get the current attention status of a slot. If this field is NULL, the value passed in the struct hotplug_slot_info will be used when this value is requested by a user. : Called to get the current latch status of a slot. If this field is NULL, the value passed in the struct hotplug_slot_info will be used when this value is requested by a user. : Called to get see if an adapter is present in the slot or not. If this field is NULL, the value passed in the struct hotplug_slot_info will be used when this value is requested by a user.

The table of function pointers that is passed to the hotplug pci core by a hotplug pci driver. These functions are called by the hotplug pci core when the user wants to do something to a specific slot (query it for information, set an LED, enable / disable power, etc.)

Definition at line 72 of file pci_hotplug.h.

Field Documentation

int(* disable_slot)(struct hotplug_slot *slot)

Definition at line 76 of file pci_hotplug.h.

int(* enable_slot)(struct hotplug_slot *slot)

Definition at line 75 of file pci_hotplug.h.

int(* get_adapter_status)(struct hotplug_slot *slot, u8 *value)

Definition at line 82 of file pci_hotplug.h.

int(* get_attention_status)(struct hotplug_slot *slot, u8 *value)

Definition at line 80 of file pci_hotplug.h.

int(* get_latch_status)(struct hotplug_slot *slot, u8 *value)

Definition at line 81 of file pci_hotplug.h.

int(* get_power_status)(struct hotplug_slot *slot, u8 *value)

Definition at line 79 of file pci_hotplug.h.

int(* hardware_test)(struct hotplug_slot *slot, u32 value)

Definition at line 78 of file pci_hotplug.h.

const char* mod_name

Definition at line 74 of file pci_hotplug.h.

struct module* owner

Definition at line 73 of file pci_hotplug.h.

int(* set_attention_status)(struct hotplug_slot *slot, u8 value)

Definition at line 77 of file pci_hotplug.h.


The documentation for this struct was generated from the following file: