kobject_get_path(9)
π kobject_get_path π
okay so welcome to the Kernel API Manual, section 9, bestie β this page is all about kobject_get_path(9), and it is literally here to allocate memory and fill in the path for @kobj. β¨
πΈ NAME πΈ
kobject_get_path β allocate memory and fill in the path for @kobj. that's the whole vibe. π
π SYNOPSIS π
char * kobject_get_path (const struct kobject *kobj , gfp_t gfp_mask );
π¦ ARGUMENTS π¦
kobjβ the kobject in question, aka the one we're building the path with. πgfp_maskβ the allocation type used to allocate the path. yes, that's the allocation situation. β¨
π RETURN π
The newly allocated memory. Caller must free it with kfree. π«Ά
bestie, this is the part where you remember to free it with kfree β the caller has to do that, no cap. π
π₯ SEE ALSO π₯
The kernel file is ./lib/kobject.c, and here's the whole squad:
kobject_namespace(9)kobject_get_ownership(9)kobject_set_name_vargs(9)kobject_set_name(9)kobject_init(9)kobject_add(9)kobject_init_and_add(9)kobject_rename(9)kobject_move(9)kobject_del(9)kobject_get(9)kobject_put(9)kobject_create(9)kobject_create_and_add(9)kset_init(9)kset_register(9)kset_unregister(9)kset_find_obj(9)kset_create(9)kset_create_and_add(9)
okay that's the page, bestie. signing off from ./lib, October 2026 β now go free that memory and slay. ππ¦
π¦ 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