open

Name

open -- message communication object open system call

Synopsis

int open (const char * pathname, int flags);

Arguments

pathname

The path to driver device node is specified there. The conventional device names for Linux CAN driver are /dev/can0, /dev/can1, etc.

flags

flags modifying style of open call. The standard O_RDWR mode should be used for CAN device. The mode O_NOBLOCK can be used with driver as well. This mode results in immediate return of read and write.

Description

Returns negative number in the case of error. Returns the file descriptor for named CAN message object in other cases.