nal_hevc_write_pps(9)
β¨ nal_hevc_write_pps β PPS NAL unit, but make it RBSP β¨
okay so this is a page from the Kernel API Manual, and it's about nal_hevc_write_pps β yes bestie, we're in kernel driver territory, put your hair up π
πΈ SYNOPSIS πΈ
ssize_t nal_hevc_write_pps (const struct device *dev , void *dest ,
size_t n , struct nal_hevc_pps *pps );
literally the whole function signature, character for character, no cap π«Ά
π ARGUMENTS π
devβ device pointer. the lil handle to the device, she's just there living her lifedestβ the buffer that is filled with RBSP data. this is where the magic goes β¨nβ maximum size ofdestin bytes. the vibes have a limit, and this is itppsβ thestruct nal_hevc_ppsto convert to RBSP. this is our main character, we're turning her into RBSP data
π₯ DESCRIPTION π₯
Convert pps to RBSP data and write it into dest. that's the whole job, she's a converter, she's iconic π
now here's the tea though: the size of the PPS NAL unit is not known in advance, and this function will fail if dest does not hold sufficient space for the PPS NAL unit. so likeβ¦ give her room, bestie. no guessing-and-squeezing, she needs the full fit or it's a wrap π
fr fr, do not skimp on the buffer. she is not doing overflow math for you, she's just gonna fail and you'll be sad. π
π RETURN π
number of bytes written to dest β or a negative error code if things went sideways π
π SEE ALSO π
the kernel file lives right here: ./drivers/media/platform/allegro-dvt/nal-hevc.c β go read it, it's giving lore π¦
and the whole NAL squad, all of them, no one left out:
nal_hevc_write_vps(9)nal_hevc_read_vps(9)nal_hevc_write_sps(9)nal_hevc_read_sps(9)nal_hevc_read_pps(9)nal_hevc_write_filler(9)nal_hevc_read_filler(9)
like a little family of functions, obsessed π«Ά
okay and finally, the cute sign-off: this page came from ./drivers/media/platform/alleg... (the source path got a lil clipped in the footer, that's just how she came out the box) and she's dated October 2026 πΈ and yes, the header and footer both say nal_hevc_write_pps(9) because she's consistent like that. periodt. π
β¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms