linux/Documentation/userspace-api
Konstantin Shabanov 55834f0d74 docs: netlink: Correct buffer sizing info
Update the docs to match the code (include/linux/netlink.h):

  /*
   *	skb should fit one page. This choice is good for headerless malloc.
   *	But we should limit to 8K so that userspace does not have to
   *	use enormous buffer sizes on recvmsg() calls just to avoid
   *	MSG_TRUNC when PAGE_SIZE is very large.
  */
  #if PAGE_SIZE < 8192UL
  #define NLMSG_GOODSIZE	SKB_WITH_OVERHEAD(PAGE_SIZE)
  #else
  #define NLMSG_GOODSIZE	SKB_WITH_OVERHEAD(8192UL)
  #endif

Signed-off-by: Konstantin Shabanov <mail@etehtsea.me>
Link: https://patch.msgid.link/20260512103101.1076173-1-mail@etehtsea.me
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-05-15 15:52:18 -07:00
..
accelerators Documentation: ocxl.rst: Update consortium site 2025-03-12 16:26:45 -06:00
ebpf docs/bpf: Add bpf() syscall command reference 2021-03-04 18:39:46 -08:00
fwctl fwctl/bnxt_fwctl: Add documentation entries 2026-03-31 13:33:55 -03:00
gpio Documentation: use a source-read extension for the index link boilerplate 2026-01-23 11:59:34 -07:00
ioctl Char/Misc/IIO driver changes for 7.0-rc1 2026-02-17 09:11:04 -08:00
media media: uapi: Clarify MBUS color component order for serial buses 2026-03-24 11:58:02 +01:00
netlink docs: netlink: Correct buffer sizing info 2026-05-15 15:52:18 -07:00
check_exec.rst security: Add EXEC_RESTRICT_FILE and EXEC_DENY_INTERACTIVE securebits 2024-12-18 17:00:29 -08:00
dcdbas.rst Documentation: move driver-api/dcdbas to userspace-api/ 2024-01-03 14:17:40 -07:00
dma-buf-alloc-exchange.rst doc: uapi: Add document describing dma-buf semantics 2023-08-21 18:20:05 +02:00
dma-buf-heaps.rst dma-buf: heaps: system: document system_cc_shared heap 2026-04-10 14:20:01 +02:00
ELF.rst ELF: document some de-facto PT_* ABI quirks 2023-04-20 17:53:38 -06:00
futex2.rst futex2: Documentation: Document sys_futex_waitv() uAPI 2021-10-07 13:51:13 +02:00
index.rst Scheduler changes for v7.0: 2026-02-10 12:50:10 -08:00
iommufd.rst iommufd: Fix spelling errors in iommufd.rst 2025-08-18 11:15:06 -03:00
isapnp.rst Documentation: move driver-api/isapnp to userspace-api/ 2024-01-03 14:17:39 -07:00
landlock.rst landlock: Document fallocate(2) as another truncation corner case 2026-04-07 18:51:11 +02:00
liveupdate.rst docs: add luo documentation 2025-11-27 14:24:39 -08:00
lsm.rst LSM: Create lsm_list_modules system call 2023-11-12 22:54:42 -05:00
mfd_noexec.rst mm/memfd: add documentation for MFD_NOEXEC_SEAL MFD_EXEC 2024-06-15 10:43:07 -07:00
mseal.rst LoongArch: Enable ARCH_SUPPORTS_MSEAL_SYSTEM_MAPPINGS 2025-05-30 21:45:42 +08:00
no_new_privs.rst doc: ReSTify no_new_privs.txt 2017-05-18 10:30:09 -06:00
ntsync.rst docs: ntsync: Add documentation for the ntsync uAPI. 2025-01-08 13:18:12 +01:00
perf_ring_buffer.rst coresight: docs: Remove target sink from examples 2025-03-11 14:55:57 +00:00
rseq.rst rseq: Reenable performance optimizations conditionally 2026-05-06 17:40:27 +02:00
seccomp_filter.rst Documentation: userspace-api: correct spelling 2023-02-02 11:07:18 -07:00
spec_ctrl.rst Documentation/x86: Fix PR_SET_SPECULATION_CTRL error codes 2025-12-29 16:27:45 +01:00
sysfs-platform_profile.rst docs: Fix typos, improve grammar in Userspace API 2025-06-09 15:13:33 -06:00
tee.rst Documentation: Destage TEE subsystem documentation 2023-12-08 15:45:10 -07:00
unshare.rst doc-rst: fix inline emphasis in unshare.rst 2017-05-18 10:23:10 -06:00
vduse.rst Documentation: Add documentation for VDUSE Address Space IDs 2026-01-28 15:32:18 -05:00