dibs_dev_alloc(9)
β¨ dibs_dev_alloc(9) β¨
okay so this is a page from the Kernel API Manual (section 9, kernel-land bestie π
) and it's about dibs_dev_alloc β the moment you get a whole device structure handed to you. iconic behaviour honestly.
πΈ NAME πΈ
dibs_dev_alloc β allocate and reference device structure π
π¦ SYNOPSIS π¦
struct dibs_dev * dibs_dev_alloc (void );
π ARGUMENTS π
voidβ literally no arguments, bestie. you bring nothing, you get a device. that's the vibe. β¨
π DESCRIPTION π
so you call this and if it comes back happy, the following fields are valid on the returned thing:
devβ valid upon successful return πlockβ also valid upon successful return π
that's it, that's the whole description. two fields, both valid, both slaying. don't overthink it. π«Ά
π NOTE π
listen to me very carefully bestie: once you've successfully called this function, you do NOT free the dibs dev directly. no cap. instead you give up your reference with put_device(dibs_get_dev(dibs)) and let it go the proper way. freeing it yourself is not it. π
β RETURN β
Pointer to dibs device structure. that's the whole return value. a pointer. to a dibs device structure. periodt. π₯
π§ SEE ALSO π§
- Kernel file
./include/linux/dibs.h dibs_register_client(9)dibs_unregister_client(9)dibs_dev_add(9)dibs_dev_del(9)
go read those too, iykyk πβ¨
and that's the page!! compiled out of ./include/linux, dated October 2026 β so yes, this manpage is from the future and it still looks this good π
π¦ mwah, love u, go allocate responsibly π
π¦ 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