Files
kernel/include/linux
Jason A. Donenfeld 362b87f5b1 netlink: use 48 byte ctx instead of 6 signed longs for callback
People are inclined to stuff random things into cb->args[n] because it
looks like an array of integers. Sometimes people even put u64s in there
with comments noting that a certain member takes up two slots. The
horror! Really this should mirror the usage of skb->cb, which are just
48 opaque bytes suitable for casting a struct. Then people can create
their usual casting macros for accessing strongly typed members of a
struct.

As a plus, this also gives us the same amount of space on 32bit and 64bit.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-07-01 19:12:10 -07:00
..
2019-05-31 11:13:10 +02:00
2019-05-14 19:52:50 -07:00
2019-06-26 13:19:46 -07:00
2019-06-10 13:00:24 +02:00
2019-05-14 09:47:51 -07:00
2019-05-14 19:52:51 -07:00
2019-05-14 19:52:48 -07:00
2019-05-31 12:37:46 -07:00
2019-05-16 15:51:55 -07:00
2019-06-14 20:18:27 -07:00
2019-05-15 17:35:54 +01:00