On Fri, Apr 01, 2016 at 02:27:31PM +0200, Philipp Psurek wrote:
If you have some spare time please recommend me some literature that
has helped you on your way to write batman-adv code. I've two, three
weeks to prepare myself and evaluate if I understand the code (or some
parts of it) or participate in fixing some other Freifunk related
A few of the basics would be lists and locking as they are used
everywhere in the code and would be something you would need to
use and understand for batman-adv coding.
For lists, for instance:
Or the kerneldoc for lists themselves :) :
For locking, two kinds of locks are mostly used in batman-adv. The
easy ones are spin-locks:
And then there is the fancy but super awesome RCU locking :) :
Finally, knowing how SKBs work is something you should look into
for Linux network coding:
A friend of mine had written a small (< 300 lines) but fun kernel module:
Maybe you could set up a KVM instance and play a little with its
code in there? Try out lists and spinlocks etc. in there without
crashing the VM instance :).
PS: If you need any help, feel free to query me in #batman on
Freenode (nick: T_X).