diff options
author | ddennedy <ddennedy@53a565d1-3bb7-0310-b661-cf11e63c67ab> | 2004-11-26 16:30:44 +0000 |
---|---|---|
committer | ddennedy <ddennedy@53a565d1-3bb7-0310-b661-cf11e63c67ab> | 2004-11-26 16:30:44 +0000 |
commit | 9d07aaadda67c3a435afd18ef40a8ebac9c078d8 (patch) | |
tree | f6a9d1d3e640ad01d64b29a2045e29067d145837 | |
parent | 3de7e65109612eadb60dcb227b1a9fd2e18f6285 (diff) | |
download | libraw1394-9d07aaadda67c3a435afd18ef40a8ebac9c078d8.tar.gz |
add comment about assumptions made in raw1394_get_port_info
git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@152 53a565d1-3bb7-0310-b661-cf11e63c67ab
-rw-r--r-- | src/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -204,6 +204,11 @@ int raw1394_get_port_info(struct raw1394_handle *handle, CLEAR_REQ(&req); req.type = RAW1394_REQ_LIST_CARDS; req.generation = handle->generation; + /* IMPORTANT: raw1394 will be writing directly into the memory you + provide in pinf. The viability of this approach assumes that the + structure of libraw1394's raw1394_portinfo and the kernel's + raw1394_khost_list structs are the same!! + */ req.recvb = ptr2int(pinf); req.length = sizeof(struct raw1394_portinfo) * maxports; |