set_cgroup_xattr(9)
π set_cgroup_xattr(9) π
okay so bestie, welcome to the Kernel API Manual entry for set_cgroup_xattr β yes that's the whole (9) situation, it's a kernel-space girlie β¨
πΈ NAME πΈ
set_cgroup_xattr β literally just sets an xattr on a cgroup dir, that's the whole vibe π
β¨ SYNOPSIS β¨
int set_cgroup_xattr (const char *relative_path , const char *name ,
const char *value );
π¦ ARGUMENTS π¦
relative_pathβ the cgroup path, relative to the workdir, where you wanna set the xattr. so like, relative relative, not the whole absolute novel πnameβ the xattr name, iykyk π·οΈvalueβ the xattr value, the actual content, the main character of the attribute π
π DESCRIPTION π
This function sets an xattr on a cgroup dir. Periodt. That's it, that's the function π
On success, it returns 0. Otherwise, on failure, it returns -1. no cap π«Ά
lowkey important:0= slay,-1= it's giving error, go check yourself π
π SEE ALSO π
Kernel file ./tools/testing/selftests/bpf/cgroup_helpers.c β the source of truth, go read it bestie π
and the whole friend group π:
enable_controllers(9)write_cgroup_file(9)write_cgroup_file_parent(9)setup_cgroup_environment(9)join_cgroup(9)join_root_cgroup(9)join_parent_cgroup(9)__cleanup_cgroup_environment(9)cleanup_cgroup_environment(9)get_root_cgroup(9)create_and_get_cgroup(9)get_cgroup_id_from_path(9)setup_classid_environment(9)set_classid(9)join_classid(9)cleanup_classid_environment(9)get_classid_cgroup_id(9)get_cgroup1_hierarchy_id(9)open_classid(9)
okay that's the whole page, mwah π this icon lives in ./tools/testing/selftests/bpf and it's dated October 2026 β yes, future girlie behavior, we love to see it βπ¦ see u in the next manpage bestie π«Άπ
π¦ 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