1BIO_COPY_KERN(9) The Linux VFS BIO_COPY_KERN(9)
2
3
4
6 bio_copy_kern - copy kernel address into bio
7
9 struct bio * bio_copy_kern(struct request_queue * q, void * data,
10 unsigned int len, gfp_t gfp_mask,
11 int reading);
12
14 q
15 the struct request_queue for the bio
16
17 data
18 pointer to buffer to copy
19
20 len
21 length in bytes
22
23 gfp_mask
24 allocation flags for bio and page allocation
25
26 reading
27 data direction is READ
28
30 copy the kernel address into a bio suitable for io to a block device.
31 Returns an error pointer in case of error.
32
34Kernel Hackers Manual 2.6. November 2011 BIO_COPY_KERN(9)