Lines Matching refs:section
44 /* MMAP-based section mapping information. */
57 /* Map a section.
59 * On success, sets @section's mapping, unmap, and read pointers.
62 * Returns -pte_internal if @section or @file are NULL.
63 * Returns -pte_invalid if @section can't be mapped.
65 extern int pt_sec_posix_map(struct pt_section *section, int fd);
67 /* Unmap a section.
69 * On success, clears @section's mapping, unmap, and read pointers.
72 * Returns -pte_internal if @section is NULL.
73 * Returns -pte_internal if @section has not been mapped.
75 extern int pt_sec_posix_unmap(struct pt_section *section);
77 /* Read memory from an mmaped section.
79 * Reads at most @size bytes from @section at @offset into @buffer.
82 * Returns -pte_invalid if @section or @buffer are NULL.
83 * Returns -pte_nomap if @offset is beyond the end of the section.
85 extern int pt_sec_posix_read(const struct pt_section *section, uint8_t *buffer,
88 /* Compute the memory size of a section.
90 * On success, provides the amount of memory used for mapping @section in bytes
94 * Returns -pte_internal if @section or @size is NULL.
95 * Returns -pte_internal if @section has not been mapped.
97 extern int pt_sec_posix_memsize(const struct pt_section *section,