bio_copy_user(9)

bio_copy_user9

Copy user data to bio

Usage

struct bio * bio_copy_user(struct request_queue * q, struct rq_map_data * map_data, unsigned long uaddr, unsigned int len, int write_to_vm, gfp_t gfp_mask);

Arguments

q

destination block queue

map_data

pointer to the rq_map_data holding pages (if necessary)

uaddr

start of user address

len

length in bytes

write_to_vm

bool indicating writing to pages or not

gfp_mask

memory allocation flags

Overview

Prepares and returns a bio for indirect user io, bouncing data to/from kernel pages as necessary. Must be paired with call bio_uncopy_user on io completion.

Releases

5 releases since Debian 4.0 (Etch); the text changed 4 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8

From linux-manual-3.16 3.16.56-1+deb8u1 in Debian 8 (Jessie). Parsed by carta from the page's man source.