Skip Navigation Links | |
Exit Print View | |
man pages section 9: DDI and DKI Kernel Functions Oracle Solaris 11.1 Information Library |
csx_AccessConfigurationRegister(9F)
csx_Parse_CISTPL_BYTEORDER(9F)
csx_Parse_CISTPL_CFTABLE_ENTRY(9F)
csx_Parse_CISTPL_DEVICEGEO(9F)
csx_Parse_CISTPL_DEVICEGEO_A(9F)
csx_Parse_CISTPL_DEVICE_OA(9F)
csx_Parse_CISTPL_DEVICE_OC(9F)
csx_Parse_CISTPL_LINKTARGET(9F)
csx_Parse_CISTPL_LONGLINK_A(9F)
csx_Parse_CISTPL_LONGLINK_C(9F)
csx_Parse_CISTPL_LONGLINK_MFC(9F)
ddi_get_soft_iblock_cookie(9F)
ddi_intr_get_supported_types(9F)
ddi_prop_lookup_byte_array(9F)
ddi_prop_lookup_int64_array(9F)
ddi_prop_lookup_string_array(9F)
ddi_prop_update_byte_array(9F)
ddi_prop_update_int64_array(9F)
ddi_prop_update_string_array(9F)
ldi_prop_lookup_byte_array(9F)
ldi_prop_lookup_int64_array(9F)
ldi_prop_lookup_string_array(9F)
mac_prop_info_set_default_link_flowctrl(9F)
mac_prop_info_set_default_str(9F)
mac_prop_info_set_default_uint8(9F)
mac_prop_info_set_range_uint32(9F)
net_event_notify_unregister(9F)
net_instance_notify_register(9F)
net_instance_notify_unregister(9F)
net_instance_protocol_unregister(9F)
net_protocol_notify_register(9F)
nvlist_lookup_boolean_array(9F)
nvlist_lookup_boolean_value(9F)
nvlist_lookup_nvlist_array(9F)
nvlist_lookup_string_array(9F)
nvlist_lookup_uint16_array(9F)
nvlist_lookup_uint32_array(9F)
nvlist_lookup_uint64_array(9F)
nvpair_value_boolean_array(9F)
pci_plist_lookup_int16_array(9F)
pci_plist_lookup_int32_array(9F)
pci_plist_lookup_int64_array(9F)
pci_plist_lookup_int8_array(9F)
pci_plist_lookup_string_array(9F)
pci_plist_lookup_uint16_array(9F)
pci_plist_lookup_uint32_array(9F)
pci_plist_lookup_uint64_array(9F)
pci_plist_lookup_uint8_array(9F)
scsi_get_device_type_scsi_options(9F)
scsi_get_device_type_string(9F)
scsi_sense_cmdspecific_uint64(9F)
usb_get_current_frame_number(9F)
usb_get_max_pkts_per_isoc_request(9F)
usb_pipe_get_max_bulk_transfer_size(9F)
usb_pipe_stop_intr_polling(9F)
usb_pipe_stop_isoc_polling(9F)
- list functions
#include <sys/list.h> void list_create(list_t * list, size_t size, size_t offset);
void list_destroy(list_t * list);
void list_insert_after(list_t * list, void *reference_item, void *new_item);
void list_insert_before(list_t * list, void *reference_item, void *new_item);
void list_insert_head(list_t * list*, void *new_item);
void list_insert_tail(list_t * list, void *new_item);
void list_remove(list_t * list, void *item);
void *list_remove_head(list_t * list);
void *list_remove_tail(list_t * list);
void *list_head(list_t * list);
void *list_tail(list_t * list);
void *list_next(list_t * list, void *reference_item);
void *list_prev(list_t * list, void *reference_item);
int list_is_empty(list_t * list);
void list_link_init(list_node_t *node);
int list_link_active(list_node_t *node);
void list_move_tail(list_t *dst, list_t *src);
void list_link_replace(list_node_t *node1, list_node_t *node2);
The list_create() function initializes a new list. The driver supplies the storage for the list handle, the size of an individual element, and the offset of a list_node_t within the element to use for the links of the list.
The list_destroy() function destroys the list handle, including freeing any resources that may have been internally allocated for the list. The list must be empty when this function is called.
The list_insert_after() and list_insert_before() functions insert new_item into the linked list at a location after or before the reference item, which must already be on the list.
The list_insert_head() and list_insert_tail() functions insert the new_item on the list at either the head or tail of the list. (The head is the first item, the tail is the last item).
The list_remove() function removes the item from the list.
The list_remove_head() and list_remove_tail() functions remove the head (first) or tail (last) item from the list. The item removed is returned to the caller. If the list is empty when these functions are called, then no change is made and NULL is returned to the caller.
The list_head() and list_tail() functions simply return the head (first) or tail (last) item on the list. NULL is returned if the list is empty.
The list_next() and list_prev() functions return the next or previous item in the list, relative to the named reference item which must be linked on the list.
The list_is_empty() function returns 0 if the list has items in it, or non-zero otherwise.
The list_link_init() function initializes the list_node_t. It is functionally equivalent to bzero(node, sizeof(*node));
The list_link_active() function returns non-zero if the node is on an active list.
The list_move_tail() function is used to append the items on the src list to the end of the dst list. It is mandatory that the two lists were initialized using identical size and offset parameters. Upon completion, the src list will be empty.
The list_link_replace() function swaps two items on a list. Note that the items need not be on the same list, but extreme care must be used to ensure that both lists are protected from concurrent accesses and that the lists were initialized with identical size and offset parameters.
See attributes(5) for descriptions of the following attributes:
|