diff options
| author | Sasha Levin <sashal@kernel.org> | 2026-05-05 11:42:01 -0400 |
|---|---|---|
| committer | Sasha Levin <sashal@kernel.org> | 2026-10-07 18:26:44 -0400 |
| commit | eddd14da6bede7b3f321fa6412ab7836b0a1ecfe (patch) | |
| tree | 2bd1e9dd8005f0d31d86b7a49595e24121ce01e1 /kernel/api/kernel_api_spec.c | |
| parent | 20ed30c4a64973085f74e0b4343bf9ea5b783862 (diff) | |
| download | linux-next-eddd14da6bede7b3f321fa6412ab7836b0a1ecfe.tar.gz linux-next-eddd14da6bede7b3f321fa6412ab7836b0a1ecfe.zip | |
kernel/api: add API specification for sys_madvise
Add KAPI-annotated kerneldoc for the sys_madvise system call in
mm/madvise.c.
The specification documents the parameters (start, len_in, behavior),
per-behavior error conditions, lock acquisition (mmap_lock read and
write modes plus the per-VMA fast path, mmu_gather and mmu_notifier
brackets), signal handling, side effects, capability requirements
(CAP_SYS_ADMIN for MADV_HWPOISON and MADV_SOFT_OFFLINE), mseal
interaction, and how each behavior skips pages or reports errors.
Assisted-by: LLM
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'kernel/api/kernel_api_spec.c')
0 files changed, 0 insertions, 0 deletions
