vidtv_psi_sdt_write_into(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ vidtv_psi_sdt_write_into(9) ✨

okay bestie so this is from the Kernel API Manual, and we're talking about vidtv_psi_sdt_write_into β€” like, the actual function name, that's the whole vibe. Buckle up, it's a short one but it matters 🫢


🌸 SYNOPSIS 🌸

u32 vidtv_psi_sdt_write_into (struct vidtv_psi_sdt_write_args *args );

literally that's it. one single u32, one single pointer. clean. iconic. no notes πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • args β€” an instance of struct vidtv_psi_sdt_write_args. yeah that's the whole thing, she just wants her lil struct okay 😭

πŸ’– DESCRIPTION πŸ’–

so what does she do?? this function writes the MPEG TS packets for a SDT table into a buffer. that's the job. that's the assignment. no cap. πŸ¦‹

ngl, the calling code is usually gonna generate the SDT first by calling its init function β€” so bestie, you own that memory now and it's your responsibility to free it. the function does not free it for you, no freebies here πŸ™ˆ


πŸ”₯ RETURN πŸ”₯

she returns the number of bytes written into the buffer. and here's the plot twist: that number is NOT equal to the size of the SDT, because TS encapsulation needs extra space for the TS headers along the way. so like… don't assume those two numbers match, okay?? they're different girlies 🫢


🌈 SEE ALSO 🌈

this list is long bestie, grab a snack, we're going through all of it πŸ“

like, go read those too. iykyk πŸ’œ


lowkey reminder: we stan a function that tells you exactly what it returns and what it does not return. transparency queen πŸ‘‘

okay that's the whole page!! mwah πŸ’‹ this one came out of ./drivers/media/test-drivers/v... and the date on the lil stamp is October 2026. go forth and write those SDT packets, bestie β€” you're the main character of this buffer now β­πŸŽ€βœ¨

πŸ“¦ where this page comes from