dma_sb_map_area_linear(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ dma_sb_map_area_linear(9) ✨

okay so bestie, we're in the Kernel API Manual, section 9 β€” yes, the kernel-functions-for-grown-ups section πŸ’… β€” and today's main character is dma_sb_map_area_linear. Buckle up, it's short but it's iconic.


πŸŽ€ NAME πŸŽ€

dma_sb_map_area_linear β€” Map an area of memory into a device dma region.


πŸ¦‹ SYNOPSIS πŸ¦‹

int dma_sb_map_area_linear (struct ps3_dma_region *r , unsigned long
virt_addr , unsigned long len , dma_addr_t *bus_addr , u64 iopte_flag );

that's the whole signature, no cap 🫢


πŸ’– ARGUMENTS πŸ’–

  • r β€” Pointer to a struct ps3_dma_region. like, the region in question, yeah.
  • virt_addr β€” Starting virtual address of the area to map.
  • len β€” Length in bytes of the area to map. bytes, bestie. bytes.
  • bus_addr β€” A pointer to return the starting ioc bus address of the area to map. so you hand it a pointer, it fills in the address for you πŸŽ€
  • iopte_flag β€” honestly? -- undescribed --. the manpage literally gives us nothing here 😭 not me being left on read by the documentation. I'm not gonna make something up about it either β€” that's not the vibe.

🌸 DESCRIPTION 🌸

okay so here's the tea: this routine just returns the corresponding bus address. That is literally all it does. It does not do the mapping itself β€” no ma'am, the actual mapping occurs in dma_region_create_linear.

so like… this function is the friend who tells you where the party is but doesn't drive you there πŸš—βœ¨ still useful! just, you know. manage your expectations.

⚠️ heads up: since this returns an existing correspondence rather than creating one, don't go expecting it to set anything up for you. That's dma_region_create_linear's job, periodt.

πŸ”₯ SEE ALSO πŸ”₯


and that's the whole page, bestie β€” go read the rest of the PS3 mm crew, they're all linked above and they all ate πŸ’…

shoutout to the source, ./arch/powerpc/platforms/ps3, dated October 2026 β€” that's the version + date, mwah, mwah 🫢✨ bye!!

πŸ“¦ where this page comes from