zephyr::raw

Function sys_sfnode_init

source
pub unsafe extern "C" fn sys_sfnode_init(
    node: *mut _sfnode,
    flags: u8,
)
Expand description

@brief Initialize an sflist node

Set an initial flags value for this slist node, which can be a value between 0 and 3 on 32-bit architectures, or between 0 and 7 on 64-bit architectures. These flags will persist even if the node is moved around within a list, removed, or transplanted to a different slist.

This is ever so slightly faster than sys_sfnode_flags_set() and should only be used on a node that hasn’t been added to any list.

@param node A pointer to the node to set the flags on @param flags The flags value to set