map_sg_data(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– map_sg_data(9) πŸ’–

okay bestie, welcome to the Kernel API Manual β€” this is the map_sg_data(9) page, and we're gonna get you comfy with it. it's giving kernel-core, no cap. πŸŽ€βœ¨

πŸŽ€ NAME πŸŽ€

map_sg_data β€” maps dma for a scatterlist and initializes descriptor fields. literally the whole glow-up in one function name. πŸ’…

✨ SYNOPSIS ✨

the signature, untouched, because we do not mess with code:

int map_sg_data (struct scsi_cmnd *cmd , struct srp_event_struct
       *evt_struct , struct srp_cmd *srp_cmd , struct device *dev );

πŸ’… ARGUMENTS πŸ’…

  • cmd β€” struct scsi_cmnd with the scatterlist. that's the main character input. πŸ¦‹
  • evt_struct β€” struct srp_event_struct to map. yes bestie, this one gets mapped. ✨
  • srp_cmd β€” srp_cmd that contains the memory descriptor. it's holding the descriptor tea. πŸ“
  • dev β€” device for which to map dma memory. the device in question, fr fr. πŸ’»

πŸ¦‹ DESCRIPTION πŸ¦‹

the tea is: map_sg_data is called by map_data_for_srp_cmd when building srp cmd from scsi cmd. it returns 1 on success. that's it β€” success is literally 1, no cap. πŸ˜­πŸ‘‘

🌈 SEE ALSO 🌈

Kernel file ./drivers/scsi/ibmvscsi/ibmvscsi.c is the home base, and here's the whole crew:


signed, sealed, slayed πŸ’…: this page lives under ./drivers/scsi/ibmvscsi, dated October 2026, and the bottom line is still map_sg_data(9). πŸŽ€πŸ’–βœ¨

πŸ“¦ where this page comes from