Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
genetlink.h File Reference
#include <linux/types.h>
#include <linux/netlink.h>

Go to the source code of this file.

Data Structures

struct  genlmsghdr
 

Macros

#define GENL_NAMSIZ   16 /* length of family name */
 
#define GENL_MIN_ID   NLMSG_MIN_TYPE
 
#define GENL_MAX_ID   1023
 
#define GENL_HDRLEN   NLMSG_ALIGN(sizeof(struct genlmsghdr))
 
#define GENL_ADMIN_PERM   0x01
 
#define GENL_CMD_CAP_DO   0x02
 
#define GENL_CMD_CAP_DUMP   0x04
 
#define GENL_CMD_CAP_HASPOL   0x08
 
#define GENL_ID_GENERATE   0
 
#define GENL_ID_CTRL   NLMSG_MIN_TYPE
 
#define CTRL_CMD_MAX   (__CTRL_CMD_MAX - 1)
 
#define CTRL_ATTR_MAX   (__CTRL_ATTR_MAX - 1)
 
#define CTRL_ATTR_OP_MAX   (__CTRL_ATTR_OP_MAX - 1)
 
#define CTRL_ATTR_MCAST_GRP_MAX   (__CTRL_ATTR_MCAST_GRP_MAX - 1)
 

Enumerations

enum  {
  CTRL_CMD_UNSPEC, CTRL_CMD_NEWFAMILY, CTRL_CMD_DELFAMILY, CTRL_CMD_GETFAMILY,
  CTRL_CMD_NEWOPS, CTRL_CMD_DELOPS, CTRL_CMD_GETOPS, CTRL_CMD_NEWMCAST_GRP,
  CTRL_CMD_DELMCAST_GRP, CTRL_CMD_GETMCAST_GRP, __CTRL_CMD_MAX
}
 
enum  {
  CTRL_ATTR_UNSPEC, CTRL_ATTR_FAMILY_ID, CTRL_ATTR_FAMILY_NAME, CTRL_ATTR_VERSION,
  CTRL_ATTR_HDRSIZE, CTRL_ATTR_MAXATTR, CTRL_ATTR_OPS, CTRL_ATTR_MCAST_GROUPS,
  __CTRL_ATTR_MAX
}
 
enum  { CTRL_ATTR_OP_UNSPEC, CTRL_ATTR_OP_ID, CTRL_ATTR_OP_FLAGS, __CTRL_ATTR_OP_MAX }
 
enum  { CTRL_ATTR_MCAST_GRP_UNSPEC, CTRL_ATTR_MCAST_GRP_NAME, CTRL_ATTR_MCAST_GRP_ID, __CTRL_ATTR_MCAST_GRP_MAX }
 

Macro Definition Documentation

#define CTRL_ATTR_MAX   (__CTRL_ATTR_MAX - 1)

Definition at line 63 of file genetlink.h.

#define CTRL_ATTR_MCAST_GRP_MAX   (__CTRL_ATTR_MCAST_GRP_MAX - 1)

Definition at line 81 of file genetlink.h.

#define CTRL_ATTR_OP_MAX   (__CTRL_ATTR_OP_MAX - 1)

Definition at line 72 of file genetlink.h.

#define CTRL_CMD_MAX   (__CTRL_CMD_MAX - 1)

Definition at line 49 of file genetlink.h.

#define GENL_ADMIN_PERM   0x01

Definition at line 20 of file genetlink.h.

#define GENL_CMD_CAP_DO   0x02

Definition at line 21 of file genetlink.h.

#define GENL_CMD_CAP_DUMP   0x04

Definition at line 22 of file genetlink.h.

#define GENL_CMD_CAP_HASPOL   0x08

Definition at line 23 of file genetlink.h.

#define GENL_HDRLEN   NLMSG_ALIGN(sizeof(struct genlmsghdr))

Definition at line 18 of file genetlink.h.

#define GENL_ID_CTRL   NLMSG_MIN_TYPE

Definition at line 29 of file genetlink.h.

#define GENL_ID_GENERATE   0

Definition at line 28 of file genetlink.h.

#define GENL_MAX_ID   1023

Definition at line 10 of file genetlink.h.

#define GENL_MIN_ID   NLMSG_MIN_TYPE

Definition at line 9 of file genetlink.h.

#define GENL_NAMSIZ   16 /* length of family name */

Definition at line 7 of file genetlink.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
CTRL_CMD_UNSPEC 
CTRL_CMD_NEWFAMILY 
CTRL_CMD_DELFAMILY 
CTRL_CMD_GETFAMILY 
CTRL_CMD_NEWOPS 
CTRL_CMD_DELOPS 
CTRL_CMD_GETOPS 
CTRL_CMD_NEWMCAST_GRP 
CTRL_CMD_DELMCAST_GRP 
CTRL_CMD_GETMCAST_GRP 
__CTRL_CMD_MAX 

Definition at line 35 of file genetlink.h.

anonymous enum
Enumerator:
CTRL_ATTR_UNSPEC 
CTRL_ATTR_FAMILY_ID 
CTRL_ATTR_FAMILY_NAME 
CTRL_ATTR_VERSION 
CTRL_ATTR_HDRSIZE 
CTRL_ATTR_MAXATTR 
CTRL_ATTR_OPS 
CTRL_ATTR_MCAST_GROUPS 
__CTRL_ATTR_MAX 

Definition at line 51 of file genetlink.h.

anonymous enum
Enumerator:
CTRL_ATTR_OP_UNSPEC 
CTRL_ATTR_OP_ID 
CTRL_ATTR_OP_FLAGS 
__CTRL_ATTR_OP_MAX 

Definition at line 65 of file genetlink.h.

anonymous enum
Enumerator:
CTRL_ATTR_MCAST_GRP_UNSPEC 
CTRL_ATTR_MCAST_GRP_NAME 
CTRL_ATTR_MCAST_GRP_ID 
__CTRL_ATTR_MCAST_GRP_MAX 

Definition at line 74 of file genetlink.h.