nal_hevc_read_pps(9)
π nal_hevc_read_pps β bestie edition π
okay so this is a page from the Kernel API Manual, section 9 (the kernel interfaces girlies), and it's literally all about nal_hevc_read_pps. come sit with me, this one's short and sweet π
β¨ NAME β¨
nal_hevc_read_pps β read a PPS NAL unit straight out of RBSP format. that's it, that's the whole job, and she does it flawlessly π
π¦ SYNOPSIS π¦
ssize_t nal_hevc_read_pps (const struct device *dev , struct
nal_hevc_pps *pps , void *src , size_t n );
look at that signature. four args, one ssize_t return. chef's kiss π₯
πΈ ARGUMENTS πΈ
devβ the device pointer. yes bestie, the actual device, she needs to know who she's working with π«Άppsβ thestruct nal_hevc_ppsthat gets filled up from the RBSP data. she's the main character here, the whole point of the operation πsrcβ the buffer holding the RBSP data. this is where we're reading from β¨nβ size ofsrc, in bytes. gotta know how much we're working with, no cap π
π DESCRIPTION π
so here's the vibe: read RBSP data from src, and use it to fill pps. that's literally it. lowkey iconic for how simple it is π§
β RETURN β
- the number of bytes read from
srcπ - or a negative error code π (ngl, when you see a negative, that's your sign something went sideways)
π SEE ALSO π
the kernel file ./drivers/media/platform/allegro-dvt/nal-hevc.c β go read her, she's the source of truth π
and the whole NAL fam, all linked up:
nal_hevc_write_vps(9)nal_hevc_read_vps(9)nal_hevc_write_sps(9)nal_hevc_read_sps(9)nal_hevc_write_pps(9)nal_hevc_write_filler(9)nal_hevc_read_filler(9)
ok that's the whole page bestie, nothing hidden, nothing skipped, we ate and left no crumbs π
mwah π this was ./drivers/media/platform/alleg..., dated October 2026, and yes the page name is still nal_hevc_read_pps(9) β go forth and read those PPS NAL units π¦β¨
π¦ 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