Hey David,
The use of this function is going from the private member to the
public netdev struct. The usage is desired from the following coding
pattern.
You're implementing a netdevice. You've got ndo_init, ndo_uninit,
ndo_open, ndo_stop, ndo_start_xmit, and maybe even ndo_do_ioctl. All
of these
From: "Jason A. Donenfeld"
Date: Fri, 12 Jun 2015 15:30:29 +0200
> Being able to utilize this makes much code a lot simpler and cleaner.
> It's a nice convenience function.
>
> Signed-off-by: Jason A. Donenfeld
Please do not ever submit patches adding new interfaces without
also submitting cha
Being able to utilize this makes much code a lot simpler and cleaner.
It's a nice convenience function.
Signed-off-by: Jason A. Donenfeld
---
include/linux/netdevice.h | 11 +++
1 file changed, 11 insertions(+)
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 05b