![]() |
can_eth_gw Gateway Module
0.1
A bidirectional CAN to Ethernet Gateway (Kernel Module)
|
Control Area Network - Ethernet - Gateway - Device Header. More...
#include <linux/version.h>#include <linux/module.h>#include <linux/kernel.h>#include <linux/netdevice.h>#include <linux/etherdevice.h>#include <uapi/linux/can.h>#include "ce_gw_main.h"

Go to the source code of this file.
Data Structures | |
| struct | ce_gw_job_info |
| The private Field of ether struct net_device with pointer to its job. More... | |
Functions | |
| int | ce_gw_is_allocated_dev (struct net_device *eth_dev) |
| check if the param eth_dev is allocated by this module More... | |
| int | ce_gw_is_registered_dev (struct net_device *eth_dev) |
| check if the param eth_dev is registered by this module More... | |
| int | ce_gw_has_min_mtu (struct net_device *dev, enum ce_gw_type type, u32 flags) |
| checks if the given device has enough mtu to use the type and flags More... | |
| void | ce_gw_dev_job_src_add (struct ce_gw_job *job) |
| Adds an pointer to the net_device internal list where it is the src. More... | |
| void | ce_gw_dev_job_dst_add (struct ce_gw_job *job) |
| Adds an pointer to the net_device internal list where it is the dst. More... | |
| int | ce_gw_dev_job_add (struct net_device *eth_dev, struct ce_gw_job *job) |
| Adds an pointer to the net_device internal list where it is part of. More... | |
| void | ce_gw_dev_job_remove (struct ce_gw_job *job) |
| Removes the pointer to param job from the list in ethernet net_device. More... | |
| struct net_device * | ce_gw_dev_alloc (char *dev_name) |
| void | ce_gw_dev_free (struct net_device *eth_dev) |
| Free virtual ethernet device and remove from internal lists. More... | |
| void | ce_gw_dev_setup (struct net_device *dev, enum ce_gw_type type, __u32 flags) |
| Sets the default attributes for the Gateway Ethernet device. More... | |
| struct net_device * | ce_gw_dev_create (enum ce_gw_type type, __u32 flags, char *dev_name) |
| int | ce_gw_dev_register (struct net_device *eth_dev) |
| Register a virtual ethernet device on the OS. More... | |
| void | ce_gw_dev_unregister (struct net_device *eth_dev) |
| Unregister virtual ethernet device and remove from internal lists. More... | |
| int | ce_gw_dev_init_module (void) |
| Initialise all objects, wich are needed by the other functions. More... | |
| void | ce_gw_dev_cleanup (void) |
| Deleting all objects created by ce_gw_dev_init_module() and all devices. More... | |
Control Area Network - Ethernet - Gateway - Device Header.
Definition in file ce_gw_dev.h.