vidtv_memcpy(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 the to buffer that's getting filled
  • to_size β€” the size of the to buffer, aka the vibe check we do before writing anything
  • from β€” the starting element of the buffer being copied
  • len β€” how many elements get copied from the from buffer into the to+to_offset buffer, 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