qdio_do_sqbs(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… qdio_do_sqbs β€” set buffer states for QEBSM ✨

okay so bestie, you're in the Kernel API Manual and this one's called qdio_do_sqbs(9) β€” it's a function that sets buffer states for QEBSM. lowkey iconic name, highkey niche function, we love a specialist πŸ‘‘


🌸 SYNOPSIS 🌸

int qdio_do_sqbs (struct qdio_q *q , unsigned char state , int start ,
       int count );

that's the whole vibe right there. returns an int, takes four things. slay 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • q β€” the queue you're manipulating. this is your queue, the main character of the operation πŸ’–
  • state β€” the new state you're giving the buffers, typed as unsigned char. glow-up time ✨
  • start β€” the first buffer number to change, i.e. where the makeover begins 🎬
  • count β€” how many buffers to change. like, how many of them get the treatment πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

so what does it actually do? it returns the number of successfully changed buffers β€” that's the return value, that's the number you get back πŸ“

and here's the part that ate: it does retrying until the specified count of buffer states is set or an error occurs. fr fr, it just keeps going at it β€” either it sets the whole count you asked for, or something errors out and it stops. no cap 😭

ngl this is the kind of function where the return value is doing a lot of the talking β€” you asked for count buffers, and you get told how many actually changed. keep an eye on that number bestie πŸ‘€

🌈 SEE ALSO 🌈

everyone in this function's group chat:

like, the whole friend group, periodt πŸ§šβ€β™€οΈ


πŸ’« cute sign-off πŸ’«

this little beauty lives in ./drivers/s390/cio, and the page is dated October 2026. go forth and set those buffer states, bestie β€” iykyk πŸ”₯πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from