tld_object_init(9)
π tld_object_init(9) β Kernel API Manual, but make it a group chat π
okay so bestie, welcome to the Kernel API Manual entry for tld_object_init(9) β yes that "(9)" is the section number, she's a kernel-level icon, we stan. β¨
πΈ NAME πΈ
tld_object_init β literally just Initialize a tld_object. That's the whole vibe. No cap. π
π¦ SYNOPSIS π¦
int tld_object_init (struct task_struct *task , struct tld_object
*tld_obj );
like, look at her. two params. she's serving function signature realness. π«Ά
π ARGUMENTS π
taskβ thetask_structof the target task π like, which task are we doing this for? That one. Her.tld_objβ a pointer to atld_objectthat's about to be initialized β¨ she's the main character here, give her a glow-up
π₯ DESCRIPTION π₯
So here's the tea β β this is what you get back:
- Return
0on success π slay, it worked, we love a clean zero -ENODATAif user space did not initialize task local data for the current task throughtld_get_dataπ like bestie the data isn't there, there is no data, it's giving empty-ENOMEMif the creation oftld_key_mapfails π out of memory moment, the key map said "not today"
lowkey important: those error codes are the whole story of whether this call ate or flopped, so check your return value fr fr π
π SEE ALSO π
- Kernel file
./tools/testing/selftests/bpf/progs/task_local_data.bpf.hπ go read the source, iykyk tld_get_data(9)β the other half of this saga, the one that actually gets you the data π§
and that's the whole page, bestie π this little gem comes to you from ./tools/testing/selftests/bpf/... dated October 2026 β so like, future vibes, 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