xa_get_mark(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… xa_get_mark(9) β€” Kernel API Manual ✨

okay so bestie, this is xa_get_mark(9) from the Kernel API Manual and it's literally the "is this lil mark on this entry?" checker πŸŽ€ stay with me, it's short and it slays.


🌸 NAME 🌸

xa_get_mark β€” Inquire whether this mark is set on this entry. that's it, that's the whole job πŸ’–


✨ SYNOPSIS ✨

bool xa_get_mark (struct xarray *xa , unsigned long index , xa_mark_t
mark );

it returns a bool, no cap 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • xa β€” XArray. the actual array we're poking at πŸ‘‘
  • index β€” Index of entry. which slot we're looking at, iykyk πŸ”
  • mark β€” Mark number. which mark we're checking for, fr fr ⭐

πŸ’œ DESCRIPTION πŸ’œ

okay so here's the tea: this function uses the RCU read lock. which means the result may be out of date by the time it returns 😭 like it literally could have changed the millisecond after handing you the answer.

so if you need the result to be stable, use a lock. that's not optional bestie, that's the whole caveat 🌈

🧚 CONTEXT 🧚

Any context. Takes and releases the RCU lock. main character energy in every context honestly πŸ‘‘βœ¨


πŸ”₯ RETURN πŸ”₯

  • True β€” if the entry at index has this mark set πŸ’–
  • false β€” if it doesn't 🫠

πŸŽ€ SEE ALSO πŸŽ€

Kernel file ./lib/xarray.c and the whole friend group:

like, that's the entire group chat, they all ate πŸ’…


and that's the page bestie πŸ₯° it lives under ./lib, dated October 2026 β€” mwah, go check your marks, ily πŸ’œπŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from