nal_hevc_read_vps(9)
π nal_hevc_read_vps β the nal_hevc_read_vps(9) glow-up
okay so bestie, we're in the kernel API manual and today's main character is nal_hevc_read_vps(9). yes, that's the actual page name, i'm not making it up π
this little icon lives in the kernel and it does exactly one thing, but it does it so well.
β¨ SYNOPSIS β¨
ssize_t nal_hevc_read_vps (const struct device *dev , struct
nal_hevc_vps *vps , void *src , size_t n );
like, look at her. four args, one ssize_t return, no notes. π
π¦ ARGUMENTS π¦
devβ device pointer. your lil handle to the device, she's just there to say hi π«Άvpsβ thestruct nal_hevc_vpsthat gets filled from the RBSP data. it's giving empty cup, about to be hydrated π§srcβ the buffer holding the RBSP data. the source of truth, the vibe provider β¨nβ size ofsrc, in bytes. like, don't lie about it,nis important π§
πΈ DESCRIPTION πΈ
so here's the whole plot: read RBSP data from src, and use it to fill vps. that's it. that's the function. no cap, it's literally that. the way that this is a whole manpage and the description is one sentence π honestly? iconic. lowkey refreshing.
π₯ RETURN π₯
- non-negative β the number of bytes read from
src. slay, it told you how much it ate π - negative β an error code, i.e. something went wrong and she's telling you with a sad little minus sign π
fr fr, always check the return value. negative means error code, not "bytes read backwards". don't be that person π
π SEE ALSO π
- Kernel file
./drivers/media/platform/allegro-dvt/nal-hevc.cβ go read the source, it's right there, be nosy π nal_hevc_write_vps(9)nal_hevc_write_sps(9)nal_hevc_read_sps(9)nal_hevc_write_pps(9)nal_hevc_read_pps(9)nal_hevc_write_filler(9)nal_hevc_read_filler(9)
the whole friend group!! read and write for vps, sps, pps and filler β a full set, we love a complete collection π
and that's the page!! mwah π this lil cutie comes to you from ./drivers/media/platform/alleg... (yes the path really is abbreviated like that in the footer, i don't make the rules) and she's dated October 2026 β future girlie behavior honestly β stay hydrated, check your return codes, and go fill some VPS structs ππ
β nal_hevc_read_vps(9), signing off π«Ά
π¦ 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