can_resmgr_create_device()
Create a CAN resource manager device
Synopisis
#include <hw/libcan.h>
int can_resmgr_create_device( CANDEV* cdev );Arguments
- cdev
A pointer to the
CANDEVinstance corresponding to a CAN device initialized using can_resmgr_init_device(). This pointer must remain valid until you call can_resmgr_destroy_device() with the same cdev argument.
Description
The can_resmgr_create_device() creates a CAN resource manager device. If the device type is RX or TX, then the device path is created under /dev/can#/rx# or /dev/can#/tx#, respectively (e.g., /dev/can1/rx7).
Returns
0 on success, or -1 on error (errno is set).
Errors
Refer to secpol_resmgr_attach() for errors.
Page updated:
