Macros | |
#define | pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
Functions | |
ssize_t | can_read (struct file *file, char __user *buffer, size_t count, loff_t *loff) |
ssize_t read(int fd, void *buf, size_t count); the read system call More... | |
Module Description see Doxygen Doc for all possibilities
ssize_t can_read | ( | struct file * | file, |
char __user * | buffer, | ||
size_t | count, | ||
loff_t * | loff | ||
) |
ssize_t read(int fd, void *buf, size_t count); the read system call
fd | The descriptor to read from. |
buf | The destination data buffer (array of CAN canmsg_t). |
count | The number of bytes to read. |
read() attempts to read up to count CAN messages (not bytes! ) from file descriptor fd into the buffer starting at buf. buf must be large enough to hold count times the size of one CAN message structure canmsg_t.
the following errors can occur
EINVAL
buf points not to an large enough area,