KSTACK_CONTAINS(9)
π KSTACK_CONTAINS(9) π
okay so this one is straight from the Kernel Developer's Manual, and it's all about kstack_contains β the lowkey iconic function that checks if an address range is living inside a thread's kernel stack. no cap, it's giving address-range vibe check. β¨
πΈ NAME πΈ
kstack_contains β determine if an address range lies within the kernel stack for a thread
β¨ SYNOPSIS β¨
#include <machine/stack.h>
bool
kstack_contains(struct thread *td, vm_offset_t va, size_t len);
π¦ DESCRIPTION π¦
bestie, kstack_contains() is here to determine whether a given address range falls within the kernel stack for the thread pointed to by td. that's the whole main character job. π«Ά
π RETURN VALUES π
The function kstack_contains() returns true if the range of addresses [va..( va+len-1)] (both addresses inclusive) lies within the kernel stack for the thread pointed to by argument td, or returns false otherwise. slay. β
π ERRORS π
This function does not return an error. so no error era, bestie β it's literally not that kind of function. π
π SEE ALSO π
kisses and sparkles π this page is from Debian, dated May 2, 2023, and it's the KSTACK_CONTAINS(9) manual page. periodt. π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- π the page's license: BSD-2-Clause
- Copyright (c) 2023 Joseph Koshy <jkoshy@FreeBSD.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms