valid_type(9)
π valid_type(9) β the kernel API manual, but make it make sense
okay bestie, welcome to valid_type(9), fresh out of the Kernel API Manual β¨ this one is short and sweet and honestly kind of an icon for it. the whole vibe: you hand it a type, it tells you if that type is valid or not. that's it. that's the function. periodt π
β¨ NAME β¨
valid_type β Check if @type is valid or not. π
like literally just a vibe check but for a type. no cap.
πΈ SYNOPSIS πΈ
bool valid_type (enum misc_res_type type );
ok so it takes one thing and gives you back a bool. that's the whole plot π¦
π«Ά ARGUMENTS π«Ά
typeβ misc res type. π that's the one thing you're asking about, bestie. is it valid or is it not? the suspense is real π
π CONTEXT π
Any context. β¨
fr fr β any context. no special setup, no prerequisites, no "only call this from atomic context" drama. she's flexible like that π
β RETURN β
trueβ If valid type. π ate, no notes, valid icon behaviour.falseβ If not valid type. π sorry bestie, that type did not pass the vibe check.
π¦ SEE ALSO π¦
Kernel file ./kernel/cgroup/misc.c parent_misc(9), misc_cg_set_capacity(9), misc_cg_cancel_charge(9), misc_cg_try_charge(9), misc_cg_uncharge(9), misc_cg_max_show(9), misc_cg_max_write(9), misc_cg_current_show(9), misc_cg_peak_show(9), misc_cg_capacity_show(9), misc_cg_alloc(9), misc_cg_free(9)
go read the whole cgroup misc friend group, they're all lowkey obsessed with each other π«Ά
ok that's the whole page, she's short but she's perfect π stay valid out there, bestie π
and before you go β this cutie lives in ./kernel/cgroup, dated October 2026 at the bottom of the page like a little signature. mwah π π valid_type(9) out π
π¦ 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