[][src]Function libfuse_sys::fuse_lowlevel::fuse_lowlevel_notify_retrieve

pub unsafe extern "C" fn fuse_lowlevel_notify_retrieve(
    ch: *mut fuse_chan,
    ino: fuse_ino_t,
    size: usize,
    offset: off_t,
    cookie: *mut c_void
) -> c_int

Retrieve data from the kernel buffers

Retrieve data in the kernel buffers belonging to the given inode. If successful then the retrieve_reply() method will be called with the returned data.

Only present pages are returned in the retrieve reply. Retrieving stops when it finds a non-present page and only data prior to that is returned.

If this function returns an error, then the retrieve will not be completed and no reply will be sent.

This function doesn't change the dirty state of pages in the kernel buffer. For dirty pages the write() method will be called regardless of having been retrieved previously.

@param ch the channel through which to send the invalidation @param ino the inode number @param size the number of bytes to retrieve @param offset the starting offset into the file to retrieve from @param cookie user data to supply to the reply callback @return zero for success, -errno for failure