ionic_resid_get_shared(9)
β¨ ionic_resid_get_shared(9) β¨
okay so bestie, welcome to the Kernel API Manual π β this one's ionic_resid_get_shared, and no cap it's way simpler than the name makes it look. It's giving "tiny helper function that just wants to hand you a free resource id" energy.
πΈ NAME πΈ
ionic_resid_get_shared β allocate an available shared resource id π
Like, it goes and finds you a resource id that's free to share, and hands it over. That's the whole vibe. Slay.
π¦ SYNOPSIS π¦
int ionic_resid_get_shared (struct ionic_resid_bits *resid , unsigned
int min , unsigned int size );
literally the entire signature, character for character, i'm not touching it π β takes a pointer to struct ionic_resid_bits, plus two unsigned ints, and gives you back an int.
π ARGUMENTS π
residβ the resid allocator π this is the thing doing the allocating, the main character of the whole operation.minβ smallest valid resource id β like the floor, the lower bound, the "nothing below this, periodt."sizeβ one after largest valid resource id π₯ yes, one after β so it's an exclusive-ish upper boundary vibe. keep that in mind, iykyk.
π RETURN π
a resource id π β¦ or a negative error number π (so like, check for negatives before you celebrate, bestie β fr fr).
π SEE ALSO π
- Kernel file
./drivers/infiniband/hw/ionic/ionic_resid.hβ go read the header, it's right there π«Ά struct ionic_resid_bits(9)β the struct itself, iconicionic_resid_init(9)β¨ionic_resid_destroy(9)πionic_resid_get(9)πionic_resid_put(9)π§ionic_bitid_to_qid(9)πΈionic_qid_to_bitid(9)π
bestie reminder: this lives in ./drivers/infiniband/hw/ionic β that's the neighborhood π‘
okay that's the whole page, mwah π β brought to you by the Kernel API Manual, ./drivers/infiniband/hw/ionic, October 2026, and the one and only ionic_resid_get_shared(9). bye bestie, 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