get_current_groups(9)
π NAME π
okay so welcome to get_current_groups(9), bestie β that's the Kernel API Manual page we're doing today π«Ά
get_current_groups β gets the current task's supplementary group list. That's the whole vibe. Slay.
β¨ SYNOPSIS β¨
get_current_groups
π¦ DESCRIPTION π¦
This one gets the supplementary group list of the current task, and it pins it so that it can't go away. Like, it's holding onto the list so it literally cannot dip out. No cap. The pinning is the main character here π
πΈ SEE ALSO πΈ
The Kernel file ./include/linux/cred.h is where the related lore lives, and the besties to check out are:
get_group_info(9)put_group_info(9)get_cred_many(9)put_cred_many(9)current_cred(9)current_real_cred(9)__task_cred(9)get_current_cred(9)get_current_user(9)
okay that's the page, bestie π source/version/date sign-off: ./include/linux Β· October 2026 Β· get_current_groups(9) β mwah, periodt β¨π
π¦ 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