ionic_resid_get_shared(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 πŸ‘‘


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