DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

udi_nic_cb_t(3udi)


Standard network control block

SYNOPSIS

#include <udi.h>

typedef struct {

	udi_cb_t gcb;

} udi_nic_cb_t;
 
/* Network Standard Control Block Group Number */
 
#define  UDI_NIC_STD_CB_NUM				1
 

MEMBERS gcb is the generic control block header which includes a pointer to the scratch space associated with this block and the channel context for the associated channel. The driver may use the scratch space while it owns the control block, but the values are not guaranteed to persist across channel operations.

DESCRIPTION The udi_nic_cb_t structure is used for channel operations between a child (NSR) and its parent (ND) where there is no additional metalanguage information needed in the control block. A number of the Network Interface Metalanguage control operations are defined to use this standard control block.

This control block must be declared by specifying the control block index value UDI_NIC_STD_CB_NUM in a udi_cb_init_t in the driver's udi_init_info.

The NSR or ND obtains the udi_nic_cb_t structure to use with Network Interface Metalanguage control operations by calling udi_cb_alloc with a cb_idx that has been defined for the UDI_NIC_STD_CB_NUM control block.

REFERENCES udi_init_info, udi_cb_init_t, udi_cb_alloc


UDI NIC Driver Specification Contents