tx_eqtr_iter_try_update(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… tx_eqtr_iter_try_update β€” the kernel API manual page, bestie edition

okay so real talk: this is a page from the Kernel API Manual, section 9. It's giving "niche kernel function that only your UFS driver friend knows about" and honestly? iconic. Let's get into it 🫢


✨ NAME ✨

tx_eqtr_iter_try_update β€” the function that tries to update a TX EQTR iterator. Emphasis on tries, because it's gonna vibe-check your values first πŸ‘€


🌸 SYNOPSIS 🌸

void tx_eqtr_iter_try_update (struct tx_eqtr_iter *iter , u8 preshoot ,
u8 deemphasis );

so it returns nothing (void, no take-backs) and it takes three things: an iterator pointer, a preshoot, and a deemphasis. the way that signature is literally just three little params, we love a low-arg-count king πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • iter β€” the TX EQTR iterator data structure itself. this is the main character, the thing getting updated πŸ’–
  • preshoot β€” a u8 holding the PreShoot value. yes it's capitalized in the docs, yes we're keeping it that way ✨
  • deemphasis β€” a u8 holding the DeEmphasis value. also capitalized, also staying. consistency queen πŸŽ€

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea β˜•: this function validates whether the PreShoot + DeEmphasis combination you handed it can actually be used or not. it's a bouncer at the club, checking the guest list πŸ’…

  • if the answer is yes β†’ it updates the TX EQTR iterator with the provided PreShoot and DeEmphasis πŸŽ‰
  • and it also sets the is_updated flag, so everyone knows the iterator has officially been updated πŸ”₯

if the answer is no… well, no update, no flag. that's the whole bit. simple, elegant, slay.


🌈 SEE ALSO 🌈

the friend group / the whole crew, in the order the page gives them 🫢

Kernel file ./drivers/ufs/core/ufs-txeq.c plus all these lovely functions:

that's 21 friends plus the file, fr fr iykyk 🧚


and that's the page, bestie πŸ’œ this little legend came out of the ./drivers/ufs/core source, dated October 2026, and was hand-delivered to you as tx_eqtr_iter_try_update(9) β€” go forth and update those iterators responsibly πŸ‘‘πŸ’…

πŸ“¦ where this page comes from