Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Enumerations | Functions
iscsi_boot_sysfs.h File Reference

Go to the source code of this file.

Data Structures

struct  iscsi_boot_kobj
 
struct  iscsi_boot_kset
 

Enumerations

enum  iscsi_boot_eth_properties_enum {
  ISCSI_BOOT_ETH_INDEX, ISCSI_BOOT_ETH_FLAGS, ISCSI_BOOT_ETH_IP_ADDR, ISCSI_BOOT_ETH_SUBNET_MASK,
  ISCSI_BOOT_ETH_ORIGIN, ISCSI_BOOT_ETH_GATEWAY, ISCSI_BOOT_ETH_PRIMARY_DNS, ISCSI_BOOT_ETH_SECONDARY_DNS,
  ISCSI_BOOT_ETH_DHCP, ISCSI_BOOT_ETH_VLAN, ISCSI_BOOT_ETH_MAC, ISCSI_BOOT_ETH_HOSTNAME,
  ISCSI_BOOT_ETH_END_MARKER
}
 
enum  iscsi_boot_tgt_properties_enum {
  ISCSI_BOOT_TGT_INDEX, ISCSI_BOOT_TGT_FLAGS, ISCSI_BOOT_TGT_IP_ADDR, ISCSI_BOOT_TGT_PORT,
  ISCSI_BOOT_TGT_LUN, ISCSI_BOOT_TGT_CHAP_TYPE, ISCSI_BOOT_TGT_NIC_ASSOC, ISCSI_BOOT_TGT_NAME,
  ISCSI_BOOT_TGT_CHAP_NAME, ISCSI_BOOT_TGT_CHAP_SECRET, ISCSI_BOOT_TGT_REV_CHAP_NAME, ISCSI_BOOT_TGT_REV_CHAP_SECRET,
  ISCSI_BOOT_TGT_END_MARKER
}
 
enum  iscsi_boot_initiator_properties_enum {
  ISCSI_BOOT_INI_INDEX, ISCSI_BOOT_INI_FLAGS, ISCSI_BOOT_INI_ISNS_SERVER, ISCSI_BOOT_INI_SLP_SERVER,
  ISCSI_BOOT_INI_PRI_RADIUS_SERVER, ISCSI_BOOT_INI_SEC_RADIUS_SERVER, ISCSI_BOOT_INI_INITIATOR_NAME, ISCSI_BOOT_INI_END_MARKER
}
 

Functions

struct iscsi_boot_kobjiscsi_boot_create_initiator (struct iscsi_boot_kset *boot_kset, int index, void *data, ssize_t(*show)(void *data, int type, char *buf), umode_t(*is_visible)(void *data, int type), void(*release)(void *data))
 
struct iscsi_boot_kobjiscsi_boot_create_ethernet (struct iscsi_boot_kset *boot_kset, int index, void *data, ssize_t(*show)(void *data, int type, char *buf), umode_t(*is_visible)(void *data, int type), void(*release)(void *data))
 
struct iscsi_boot_kobjiscsi_boot_create_target (struct iscsi_boot_kset *boot_kset, int index, void *data, ssize_t(*show)(void *data, int type, char *buf), umode_t(*is_visible)(void *data, int type), void(*release)(void *data))
 
struct iscsi_boot_ksetiscsi_boot_create_kset (const char *set_name)
 
struct iscsi_boot_ksetiscsi_boot_create_host_kset (unsigned int hostno)
 
void iscsi_boot_destroy_kset (struct iscsi_boot_kset *boot_kset)
 

Enumeration Type Documentation

Enumerator:
ISCSI_BOOT_ETH_INDEX 
ISCSI_BOOT_ETH_FLAGS 
ISCSI_BOOT_ETH_IP_ADDR 
ISCSI_BOOT_ETH_SUBNET_MASK 
ISCSI_BOOT_ETH_ORIGIN 
ISCSI_BOOT_ETH_GATEWAY 
ISCSI_BOOT_ETH_PRIMARY_DNS 
ISCSI_BOOT_ETH_SECONDARY_DNS 
ISCSI_BOOT_ETH_DHCP 
ISCSI_BOOT_ETH_VLAN 
ISCSI_BOOT_ETH_MAC 
ISCSI_BOOT_ETH_HOSTNAME 
ISCSI_BOOT_ETH_END_MARKER 

Definition at line 22 of file iscsi_boot_sysfs.h.

Enumerator:
ISCSI_BOOT_INI_INDEX 
ISCSI_BOOT_INI_FLAGS 
ISCSI_BOOT_INI_ISNS_SERVER 
ISCSI_BOOT_INI_SLP_SERVER 
ISCSI_BOOT_INI_PRI_RADIUS_SERVER 
ISCSI_BOOT_INI_SEC_RADIUS_SERVER 
ISCSI_BOOT_INI_INITIATOR_NAME 
ISCSI_BOOT_INI_END_MARKER 

Definition at line 55 of file iscsi_boot_sysfs.h.

Enumerator:
ISCSI_BOOT_TGT_INDEX 
ISCSI_BOOT_TGT_FLAGS 
ISCSI_BOOT_TGT_IP_ADDR 
ISCSI_BOOT_TGT_PORT 
ISCSI_BOOT_TGT_LUN 
ISCSI_BOOT_TGT_CHAP_TYPE 
ISCSI_BOOT_TGT_NIC_ASSOC 
ISCSI_BOOT_TGT_NAME 
ISCSI_BOOT_TGT_CHAP_NAME 
ISCSI_BOOT_TGT_CHAP_SECRET 
ISCSI_BOOT_TGT_REV_CHAP_NAME 
ISCSI_BOOT_TGT_REV_CHAP_SECRET 
ISCSI_BOOT_TGT_END_MARKER 

Definition at line 39 of file iscsi_boot_sysfs.h.

Function Documentation

struct iscsi_boot_kobj* iscsi_boot_create_ethernet ( struct iscsi_boot_kset boot_kset,
int  index,
void data,
ssize_t(*)(void *data, int type, char *buf show,
umode_t(*)(void *data, int type is_visible,
void(*)(void *data release 
)
read

iscsi_boot_create_ethernet() - create boot ethernet sysfs dir : boot kset : the ethernet device id : driver specific data : attr show function : attr visibility function : release function

Note: The boot sysfs lib will free the data passed in for the caller when all refs to the ethernet kobject have been released.

Definition at line 420 of file iscsi_boot_sysfs.c.

struct iscsi_boot_kset* iscsi_boot_create_host_kset ( unsigned int  hostno)
read

iscsi_boot_create_host_kset() - creates root sysfs tree for a scsi host : host number of scsi host

Definition at line 460 of file iscsi_boot_sysfs.c.

struct iscsi_boot_kobj* iscsi_boot_create_initiator ( struct iscsi_boot_kset boot_kset,
int  index,
void data,
ssize_t(*)(void *data, int type, char *buf show,
umode_t(*)(void *data, int type is_visible,
void(*)(void *data release 
)
read

iscsi_boot_create_initiator() - create boot initiator sysfs dir : boot kset : the initiator id : driver specific data : attr show function : attr visibility function : release function

Note: The boot sysfs lib will free the data passed in for the caller when all refs to the initiator kobject have been released.

Definition at line 394 of file iscsi_boot_sysfs.c.

struct iscsi_boot_kset* iscsi_boot_create_kset ( const char set_name)
read

iscsi_boot_create_kset() - creates root sysfs tree : name of root dir

Definition at line 437 of file iscsi_boot_sysfs.c.

struct iscsi_boot_kobj* iscsi_boot_create_target ( struct iscsi_boot_kset boot_kset,
int  index,
void data,
ssize_t(*)(void *data, int type, char *buf show,
umode_t(*)(void *data, int type is_visible,
void(*)(void *data release 
)
read

iscsi_boot_create_target() - create boot target sysfs dir : boot kset : the target id : driver specific data for target : attr show function : attr visibility function : release function

Note: The boot sysfs lib will free the data passed in for the caller when all refs to the target kobject have been released.

Definition at line 369 of file iscsi_boot_sysfs.c.

void iscsi_boot_destroy_kset ( struct iscsi_boot_kset boot_kset)

iscsi_boot_destroy_kset() - destroy kset and kobjects under it : boot kset

This will remove the kset and kobjects and attrs under it.

Definition at line 481 of file iscsi_boot_sysfs.c.