---
name: "scsi_kmap_atomic_sg"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/scsi_kmap_atomic_sg"
---

# scsi\_kmap\_atomic\_sg(9)

find and atomically map an sg-elemnt

## NAME

scsi\_kmap\_atomic\_sg - find and atomically map an sg-elemnt

## SYNOPSIS

**void \* scsi\_kmap\_atomic\_sg(struct scatterlist \*** *sgl***, int** *sg\_count***, size\_t \*** *offset***, size\_t \*** *len***);**

## ARGUMENTS

*sgl*

scatter-gather list

*sg\_count*

number of segments in sg

*offset*

offset in bytes into sg, on return offset into the mapped area

*len*

bytes to map, on return number of bytes mapped

## DESCRIPTION

Returns virtual address of the start of the mapped page

## AUTHORS

**James Bottomley** \<James.Bottomley@hansenpartnership.com\>

Author.

**Rob Landley** \<rob@landley.net\>

Author.

## COPYRIGHT
