raw1394_read

Name

raw1394_read --  send async read request to a node and wait for response.

Synopsis

int raw1394_read (raw1394handle_t handle, nodeid_t node, nodeaddr_t addr, size_t length, quadlet_t * buffer);

Arguments

handle

libraw1394 handle

node

target node

addr

address to read from

length

amount of data to read in quadlets

buffer

pointer to buffer where data will be saved

Description

This does the complete transaction and will return when it's finished. It will call raw1394_loop_iterate as often as necessary, return values of handlers called will be therefore lost.

Returns

0 on success or -1 on failure (sets errno)