raw1394_get_fd

Name

raw1394_get_fd -- get the communication file descriptor

Synopsis

int raw1394_get_fd(raw1394handle_t handle);

Arguments

handle

handle of which the fd is to be returned from

Description

Returns the fd used for communication with the raw1394 kernel module. This can be used for select()/poll() calls if you wait on other fds or can be integrated into another event loop (e.g. from a GUI application framework). It can also be used to set/remove the O_NONBLOCK flag using fcntl() to modify the block behaviour in raw1394_loop_iterate(). It must not be used for anything else.

Return Value

The fd of the communication stream. Invalid fds may be returned before a port was set using raw1394_set_port().