nvm_lba - LBA Interface

nvm_lba_pread

ssize_t nvm_lba_pread(struct nvm_dev * dev, void * buf, size_t count, off_t offset)

Read up to count bytes from the given device starting at the given offset into the given buffer starting at buf.

Note
This is equivalent to pread/pwrite except it takes the opaque struct nvm_dev * instead of a file descriptor

nvm_lba_pwrite

ssize_t nvm_lba_pwrite(struct nvm_dev * dev, const void * buf, size_t count, off_t offset)

Write up to count bytes from the buffer starting at buf to the given device dev at given offset.

Note
This is equivalent to pread/pwrite except it takes the opaque struct nvm_dev * instead of a file descriptor