[−][src]Function libipt_sys::pt_iscache_add_file
pub unsafe extern "C" fn pt_iscache_add_file(
iscache: *mut pt_image_section_cache,
filename: *const c_char,
offset: u64,
size: u64,
vaddr: u64
) -> c_int
Add a new file section to the traced memory image section cache.
Adds a new section consisting of @size bytes starting at @offset in @filename loaded at the virtual address @vaddr if @iscache does not already contain such a section.
Returns an image section identifier (isid) uniquely identifying that section in @iscache.
The section is silently truncated to match the size of @filename.
Returns a positive isid on success, a negative error code otherwise.
Returns -pte_invalid if @iscache or @filename is NULL. Returns -pte_invalid if @offset is too big.