copy_min_struct_from_user(9)
π copy_min_struct_from_user(9) π
okay so bestie, welcome to the Kernel API Manual page for copy_min_struct_from_user(9) β itβs giving safe future-proof argument copying, no cap. This is the whole rundown, and every lil detail stays exactly where it belongs. π«Ά
πΈ NAME πΈ
copy_min_struct_from_user β Safe future-proof argument copying. periodt. β¨
π¦ SYNOPSIS π¦
int copy_min_struct_from_user (void *const dst , const size_t ksize ,
const size_t ksize_min , const void __user *const src , const size_t
usize );
π ARGUMENTS π
dstβ Kernel space pointer orNULL. iconic, honestly.ksizeβ actual size of the data pointed to bydst.ksize_minβ minimal required size to be copied. the way this one is literally the minimum? obsessed.srcβ User space pointer orNULL.usizeβ (Alleged) size of the data pointed to bysrc. βallegedβ is doing so much work here π
β DESCRIPTION β
Extend copy_struct_from_user to check for consistent user buffer. Thatβs the whole mission, bestie β future-proof argument copying, exactly as advertised. π
π₯ RETURN π₯
0on success-errnoon failure
π SEE ALSO π
- Kernel file
./security/landlock/syscalls.c sys_landlock_create_ruleset(9)sys_landlock_add_rule(9)sys_landlock_restrict_self(9)
and thatβs the tea for copy_min_struct_from_user(9) π β source/version is ./security/landlock, dated October 2026. mwah πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms