knav_pool_desc_map(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« NAME πŸ’«

knav_pool_desc_map β€” the glow-up where a descriptor gets mapped for DMA transfer ✨

ok so real talk, this is the function in the Kernel API Manual (that's the manual name, bestie, we're in section 9) that takes your descriptor and maps it for DMA. it's giving "matchmaker but for memory" πŸ’…


🌸 SYNOPSIS 🌸

int knav_pool_desc_map (void *ph , void *desc , unsigned size ,
       dma_addr_t *dma , unsigned *dma_sz );

like, look at her. five args, returns an int, no cap 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • ph β€” the pool handle πŸ’–
  • desc β€” the address of the descriptor you want to map, iykyk
  • size β€” how big the descriptor is, aka the size of the descriptor to map
  • dma β€” a pointer that gets the DMA address back (it's the DMA address return pointer, periodt)
  • dma_sz β€” the adjusted return pointer πŸ‘‘

⭐ RETURN ⭐

0 on success, errno otherwise. that's it, that's the vibe check 😭

ngl, if you get anything back that's not 0, go read your errno and figure out what went wrong. she's telling you something 🧚

πŸ¦‹ SEE ALSO πŸ¦‹

kernel file ./drivers/soc/ti/knav_qmss_queue.c plus the whole friend group:


ok that's the whole page, you ate that πŸ’… this diva lives in ./drivers/soc/ti and the calendar says October 2026 β€” so yeah, go map those descriptors, bestie, ily, bye! πŸ“πŸ’œπŸŽ€

πŸ“¦ where this page comes from