can_eth_gw Gateway Module
0.1
A bidirectional CAN to Ethernet Gateway (Kernel Module)
|
static int __init | ce_gw_init_module (void) |
Will be automatic called at module init. More... | |
static void __exit | ce_gw_cleanup (void) |
Will be automatically called on module remove. More... | |
struct can_frame * | ce_gw_alloc_can_frame (void) |
allocates memory for the can frame More... | |
void | ce_gw_free_can_frame (struct can_frame *memory) |
frees memory allocated for can_frame More... | |
struct canfd_frame * | ce_gw_alloc_canfd_frame (void) |
allocates memory for a canfd frame More... | |
void | ce_gw_free_canfd_frame (struct canfd_frame *memory) |
frees memory allocated for can_frame More... | |
|
read |
allocates memory for the can frame
Definition at line 161 of file ce_gw_main.c.
Referenced by ce_gw_eth_to_can(), and ce_gw_get_header_can().
|
read |
allocates memory for a canfd frame
Definition at line 173 of file ce_gw_main.c.
Referenced by ce_gw_eth_to_canfd(), and ce_gw_get_header_canfd().
|
static |
Will be automatically called on module remove.
Definition at line 1048 of file ce_gw_main.c.
References ce_gw_dev_cleanup(), ce_gw_netlink_exit(), and ce_gw_remove_route().
void ce_gw_free_can_frame | ( | struct can_frame * | memory | ) |
frees memory allocated for can_frame
memory | can frame that should be freed |
Definition at line 167 of file ce_gw_main.c.
Referenced by ce_gw_eth_to_can().
void ce_gw_free_canfd_frame | ( | struct canfd_frame * | memory | ) |
frees memory allocated for can_frame
memory | canfd_frame that should be freed |
Definition at line 180 of file ce_gw_main.c.
Referenced by ce_gw_eth_to_canfd().
|
static |
Will be automatic called at module init.
0 | on success |
>0 | on failure |
Tests: remove when done!
END TEST
Definition at line 1016 of file ce_gw_main.c.
References ce_gw_dev_init_module(), ce_gw_netlink_init(), and list_jobs().