dibs_dev_alloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 🧚

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