Katoch
Katoch

Reputation: 2777

Linux can bus driver

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.

Upvotes: 0

Views: 3015

Answers (2)

yegorich
yegorich

Reputation: 4849

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

Upvotes: 1

kungjohan
kungjohan

Reputation: 514

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.

Upvotes: 1

Related Questions