bio_map_user — map user address into bio
struct bio * bio_map_user
(struct request_queue * q, struct block_device * bdev, unsigned long uaddr, unsigned int len, int write_to_vm);
the struct request_queue for the bio
destination block device
start of user address
length in bytes
bool indicating writing to pages or not
Map the user space address into a bio suitable for io to a block device. Returns an error pointer in case of error.