0

I am going through a can base network driver for MCP-2515
https://github.com/raspberrypi/linux/blob/rpi-3.6.y/drivers/net/can/mcp251x.c

Please suggest where i can find the description of the function, :--

alloc_candev
open_candev
alloc_can_skb
can_dropped_invalid_skb
alloc_can_err_skb
etc .....

Is there some read-me file or some tutorial ?

Please suggest.

Danny Beckett
  • 20,529
  • 24
  • 107
  • 134
Katoch
  • 2,709
  • 9
  • 51
  • 84
  • I am not fully clear about your question. about variou API used in writing the CAN driver can find on this link. http://cmp.felk.cvut.cz/~pisa/can/doc/lincandoc-0.3.pdf – suneet saini Apr 05 '13 at 06:31
  • this is relate to RT-linux driver. – Katoch Apr 05 '13 at 06:39
  • In the above link "Linux/RT-Linux CAN Driver" every API is properly defined. You can also see "can/dev.h" in cross-reference as answered below. – suneet saini Apr 05 '13 at 13:17

2 Answers2

1

For kernel functions I have found lxr very useful. But I am not that this is what you are asking for, perhaps you could be a little more specific in your question.

kungjohan
  • 475
  • 4
  • 18
1

This is the first place to look for info about SocketCAN drivers: https://www.kernel.org/doc/Documentation/networking/can.txt

Networking stuff can be found in the same folder: https://www.kernel.org/doc/Documentation/networking/

Here a description of network buffering in Linux: http://vger.kernel.org/~davem/skb.html and http://www.tldp.org/LDP/khg/HyperNews/get/net/net-intro.html

yegorich
  • 4,653
  • 3
  • 31
  • 37