|
From: SVN U. <dde...@li...> - 2004-11-26 16:54:51
|
Author: ddennedy
Date: 2004-11-26 11:30:44 -0500 (Fri, 26 Nov 2004)
New Revision: 152
Modified:
trunk/src/main.c
Log:
add comment about assumptions made in raw1394_get_port_info
Modified: trunk/src/main.c
===================================================================
--- trunk/src/main.c 2004-11-25 18:46:29 UTC (rev 151)
+++ trunk/src/main.c 2004-11-26 16:30:44 UTC (rev 152)
@@ -204,6 +204,11 @@
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;
|