atc_calc_bytes_left(9)
π atc_calc_bytes_left(9) β from the Kernel API Manual, bestie
okay so like, welcome to the glow-up of atc_calc_bytes_left, a kernel function whose whole entire job is math. yes bestie, math. she's calculating the number of bytes left according to the value read from CTRLA, and honestly? iconic behavior. β¨
β¨ NAME β¨
atc_calc_bytes_left β calculates the number of bytes left according to the value read from CTRLA.
like that's it, that's the whole vibe. she does the byte math so you don't have to π«Ά
πΈ SYNOPSIS πΈ
u32 atc_calc_bytes_left (u32 current_len , u32 ctrla );
return type is u32, she's giving unsigned 32-bit main character energy π
π ARGUMENTS π
current_lenβ the number of bytes left before readingCTRLA. think of it as the "before" picture πΈctrlaβ the value ofCTRLA. the "after" tea, if you will β
two arguments, both u32, no notes. slay.
π¦ SEE ALSO π¦
okay this is the part where you meet her whole friend group. no cap, it's a lot of them, but every single one is here and they all matter π
The kernel file she lives in, fr fr: ./drivers/dma/at_hdmac.c
Structs and enums (the squads):
struct atdma_sg(9)struct at_desc(9)enum atc_status(9)struct at_dma_chan(9)struct at_dma(9)struct at_dma_platform_data(9)struct at_dma_slave(9)
The "is she okay?" checks (platonic, obviously):
The rest of the whole entire cast:
set_lli_eol(9)atc_dostart(9)atc_get_llis_residue(9)atc_get_residue(9)atc_handle_error(9)atc_prep_dma_interleaved(9)atc_prep_dma_memcpy(9)atc_prep_dma_memset(9)atc_prep_slave_sg(9)atc_prep_dma_cyclic(9)atc_tx_status(9)atc_alloc_chan_resources(9)atc_free_chan_resources(9)at_dma_off(9)
bestie pls do not skip these, they're literally the group chat and you will need them π
π the cute sign-off π
so this little beauty comes from ./drivers/dma and she's dated October 2026 β mark your calendars, she's booked and busy πβ¨
later bestie, go calculate some bytes π π₯
π¦ 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