xvip_clr_and_set(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… xvip_clr_and_set(9) β€” the "Kernel API Manual" girlie is here

okay so bestie, this one is from the Kernel API Manual and it's literally called xvip_clr_and_set β€” and yes, she does exactly what her name says: clears some bits, then sets some bits. no cap. πŸŽ€


✨ NAME ✨

xvip_clr_and_set β€” clear and set the register with a bitmask 🫢


🌸 SYNOPSIS 🌸

void xvip_clr_and_set (struct xvip_device *xvip , u32 addr , u32 clr ,
u32 set );

like, that's the whole signature. she takes four things and returns nothing (void, so don't @ her for a return value πŸ’€).


πŸ’– ARGUMENTS πŸ’–

  • xvip β€” the Xilinx Video IP device. your main character struct, fr fr.
  • addr β€” the address of the register. like where the register lives, address-wise.
  • clr β€” the bitmask to be cleared. these bits are getting evicted πŸ‘‹
  • set β€” the bitmask to be set. these bits are moving in 🏠

πŸ”₯ DESCRIPTION πŸ”₯

okay so the order matters and I need you to hear me: first she clears the bit(s) of mask clr in the register at address addr, and then β€” only after β€” she sets the bit(s) of mask set in the register. after. as in afterwards. the clear happens before the set, periodt. ✨

so it's clear first, set second. that's the vibe. that's the whole function.


πŸ¦‹ SEE ALSO πŸ¦‹


lowkey reminder bestie: those (9)s aren't decoration, that's the section number. go look them up fr fr πŸ“

okay that's the page!! mwah πŸ’œ this icon lives in ./drivers/media/platform/xilinx, dated October 2026 β€” go off, kernel docs, you ate that. πŸŒˆβ­πŸ‘‘

πŸ“¦ where this page comes from