CNDP
22.08.0
|
Go to the source code of this file.
Functions | |
CNDP_API void | cnet_add_instance (const char *name, int pri, cfunc_t create, cfunc_t destroy) |
CNDP_API int | cnet_do_instance_calls (struct stk_s *stk, int type) |
CNDP_API void | cne_register_dump (void) |
CNET Registration routines.
Definition in file cnet_reg.h.
CNDP_API void cnet_add_instance | ( | const char * | name, |
int | pri, | ||
cfunc_t | create, | ||
cfunc_t | destroy | ||
) |
Add a stack instance function call for each stack instance created.
name | The name for the function to call |
pri | The priority of this function call. The lower 16 bits is split up into two 8 bit values to define the priority level and subpriority level. |
create | The stack instance create function to call prototype int (*func)(stk_t *stk) |
destroy | The stack instance destroy function to call prototype int (*func)(stk_t *stk) |
CNDP_API int cnet_do_instance_calls | ( | struct stk_s * | stk, |
int | type | ||
) |
Call all of the singleton instance functions
stk | The stack instance pointer |
type | The type of call INIT or STOP |
CNDP_API void cne_register_dump | ( | void | ) |
Dump the stack instance information