On Saturday, 5 January 2019 16.12.24 CET Linus Lüssing wrote: [...]
often with these net_device reference counters...) Same for batadv_get_softif_from_info().
No, no, no, no, no, no, no and again no. The net_device is the only thing with a refcounter here. The bat_priv doesn't have a refcounter because it is just a memory region in the net_device.
With "Same for batadv_get_softif_from_info()" I was talking about the
In any case, maybe it would make sense to mention increased refcounts in the kerneldoc?
That is to add a line like "Increases the refcount of foo and bar." So that users know which references to release and how to use this function just from reading the kerneldoc.
I'm not talking about bat_priv here.
Ok
Kind regards, Sven