bdev_direct_access — Get the address for directly-accessibly memory
long bdev_direct_access ( | struct block_device * bdev, |
| sector_t sector, | |
| void ** addr, | |
| unsigned long * pfn, | |
long size); |
bdevThe device containing the memory
sectorThe offset within the device
addrWhere to put the address of the memory
pfnThe Page Frame Number for the memory
sizeThe number of bytes requested
If a block device is made up of directly addressable memory, this function
will tell the caller the PFN and the address of the memory. The address
may be directly dereferenced within the kernel without the need to call
ioremap, kmap or similar. The PFN is suitable for inserting into
page tables.