]> rtime.felk.cvut.cz Git - socketcan-devel.git/commitdiff
minor doc changes ... tbc
authorhartkopp <hartkopp@030b6a49-0b11-0410-94ab-b0dab22257f2>
Sun, 26 Jun 2011 12:47:21 +0000 (12:47 +0000)
committerhartkopp <hartkopp@030b6a49-0b11-0410-94ab-b0dab22257f2>
Sun, 26 Jun 2011 12:47:21 +0000 (12:47 +0000)
git-svn-id: svn://svn.berlios.de//socketcan/trunk@1261 030b6a49-0b11-0410-94ab-b0dab22257f2

kernel/2.6/Documentation/networking/can/can-bcm.txt

index 56f6d19048b7c90afc2c5b7747112ea651eacc44..2d7a0a4db57f6ce5eeb7d9f591f59aaed75b5868 100644 (file)
@@ -48,8 +48,10 @@ B. Broadcast Manager protocol sockets (SOCK_DGRAM)
 
   B.1 Opening BCM sockets
   
-  To use Broadcast-Manager include the file "bcm.h".
-  A socket for Broadcast-Manager is created with:
+  To use the referenced definitions for CAN_BCM sockets, include
+  <linux/can/bcm.h>.
+
+  A socket for the Broadcast-Manager is created with:
 
     s = socket(PF_CAN, SOCK_DGRAM, CAN_BCM);
 
@@ -62,7 +64,7 @@ B. Broadcast Manager protocol sockets (SOCK_DGRAM)
 
     connect(s, (struct sockaddr *)&addr, sizeof(addr));
   
-  If a process must operate on multiple CAN buses, it must open several
+  If a process must operate on multiple CAN buses, it can open several
   sockets. It is also possible for a process to open multiple sockets
   on a single CAN-bus, if it makes sense for the application programmer
   to structure different data flows.
@@ -82,7 +84,7 @@ B. Broadcast Manager protocol sockets (SOCK_DGRAM)
         int count;                    /* run 'count' times ival1 then ival2 */
         struct timeval ival1, ival2;  /* intervals */
         canid_t can_id;               /* 32 Bit SFF/EFF. MSB set at EFF */
-        int nframes;                  /* number of can_frame's in the next field */
+        int nframes;                  /* num of can_frame's in the next field */
         struct can_frame frames[0];
     };
 
@@ -135,7 +137,8 @@ B. Broadcast Manager protocol sockets (SOCK_DGRAM)
 
    SETTIMER: set the value of ival1, ival2 and count
    STARTTIMER: start the timer with the actual value of ival1, ival2 and count.
-        Starting the timer leads simultaneously to the transmission of a can_frame
+        Starting the timer leads simultaneously to the transmission of a
+        can_frame
    TX_COUNTEVT: create the message TX_EXPIRED when count is reached
    TX_ANNOUNCE: a change of data by the process is emitted with a new frame,
         regardless of the timer status