set_cgroup_xattr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ’œ:


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