1
0
Fork 0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-01-22 16:06:04 -05:00
linux/include
Johannes Berg 7f4b3960e5 net: netlink: add nla_get_*_default() accessors
There are quite a number of places that use patterns
such as

  if (attr)
     val = nla_get_u16(attr);
  else
     val = DEFAULT;

Add nla_get_u16_default() and friends like that to
not have to type this out all the time.

Acked-by: Toke Høiland-Jørgensen <toke@kernel.org>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Link: https://patch.msgid.link/20241108114145.acd2aadb03ac.I3df6aac71d38a5baa1c0a03d0c7e82d4395c030e@changeid
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-11-11 10:32:06 -08:00
..
acpi
asm-generic
clocksource
crypto
cxl
drm
dt-bindings
keys
kunit
kvm
linux neighbour: Create netdev->neighbour association 2024-11-09 13:22:57 -08:00
math-emu
media
memory
misc
net net: netlink: add nla_get_*_default() accessors 2024-11-11 10:32:06 -08:00
pcmcia
ras
rdma
rv
scsi
soc soc: fsl_qbman: use be16_to_cpu() in qm_sg_entry_get_off() 2024-11-04 18:44:43 -08:00
sound
target
trace Including fixes from can and netfilter. 2024-11-07 11:07:57 -10:00
uapi net: mctp: Expose transport binding identifier via IFLA attribute 2024-11-09 09:04:54 -08:00
ufs
vdso
video
xen