vidtv_memcpy(9)
π vidtv_memcpy β the Kernel API Manual, bestie edition π
okay so real talk, this page lives in the Kernel API Manual and it's about vidtv_memcpy(9) β the little wrapper that keeps your MPEG-TS generator from yeeting itself straight past the end of the output buffer π no cap, it's a whole safety net.
β¨ NAME β¨
vidtv_memcpy β a wrapper routine to be used by the MPEG-TS generator, so that it does not go past the output buffer π«Ά literally its whole job.
πΈ SYNOPSIS πΈ
u32 vidtv_memcpy (void *to , size_t to_offset , size_t to_size , const
void *from , size_t len );
π¦ ARGUMENTS π¦
toβ the starting element where an MPEG-TS packet is gonna get copied to πto_offsetβ the starting position of thetobuffer that's getting filledto_sizeβ the size of thetobuffer, aka the vibe check we do before writing anythingfromβ the starting element of the buffer being copiedlenβ how many elements get copied from thefrombuffer into theto+to_offsetbuffer, fr fr
π NOTE π
Real digital TV demod drivers should not have memcpy wrappers. Like, that's not a thing they should be doing π We use it here because emulating MPEG-TS generation at kernelspace requires some extra care β it's giving "trust me, we have reasons" and those reasons are real β¨
π₯ RETURN π₯
Returns the number of bytes written π (a u32, in case you were wondering).
π SEE ALSO π
- Kernel file
./drivers/media/test-drivers/vidtv/vidtv_common.c vidtv_memset(9)β her sister function, go say hi π§
okay so that's the whole page, ate and left no crumbs π
this was vidtv_memcpy(9) from the Kernel API Manual, sourced from ./drivers/media/test-drivers/v... and dated October 2026 β see you in the next buffer, bestie, stay within bounds ππ¦π
π¦ 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