idr_get_cursor(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌟 idr_get_cursor(9) 🌟

okay so bestie, this page is straight outta the Kernel API Manual πŸ“–βœ¨ and it's all about peeking at where the cyclic allocator is currently pointing. iconic little cursor check, no cap πŸ’…

πŸ’– NAME πŸ’–

idr_get_cursor β€” Return the current position of the cyclic allocator πŸŒ€

✨ SYNOPSIS ✨

unsigned int idr_get_cursor (const struct idr *idr );

πŸŽ€ ARGUMENTS πŸŽ€

  • idr β€” idr handle 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

The value returned is the value that will be next returned from idr_alloc_cyclic if it is free β€” otherwise the search will start from this position. πŸ’«

Like, that's the whole vibe: you ask the cursor where it's at, and it tells you the next spot idr_alloc_cyclic would hand out if that spot is free. If it's not free, the search just starts from this position instead. simple as that 🌸

πŸ’… SEE ALSO πŸ’…


mwah πŸ’‹ bestie, that's the whole page β€” source/version: ./include/linux, date: October 2026, and the page is idr_get_cursor(9). go forth and cursor-check responsibly πŸŒˆπŸ‘‘

πŸ“¦ where this page comes from