FreeBSD/cddl/contrib/opensolaris/lib/libctf/common/ctf_lib.c
/*
 * Since sp->cts_data has the adjusted offset, we have to again round down
 * to get the actual mmap address and round up to get the size.
 */
Since sp->cts_data has the adjusted offset, we have to again round down
to get the actual mmap address and round up to get the size.
Since sp - > cts_data has the adjusted offset we have to again round down to get the actual mmap address and round up to get the size .
void
ctf_sect_munmap(const ctf_sect_t *sp)
{
	uintptr_t addr = (uintptr_t)sp->cts_data;
	uintptr_t pageoff = addr & ~_PAGEMASK;
	(void) munmap((void *)(addr - pageoff), sp->cts_size + pageoff);
}
void ctf_sect_munmap ( const ctf_sect_t * sp ) { uintptr_t addr = ( uintptr_t ) sp -> cts_data ; uintptr_t pageoff = addr & ~ _PAGEMASK ; ( void ) munmap ( ( void * ) ( addr - pageoff ) , sp -> cts_size + pageoff ) ; }
Since sp->cts_data has the adjusted offset, we have to again round down
 to get the actual mmap address and round up to get the size.
Since sp - > cts_data has the adjusted offset we have to again round down to get the actual mmap address and round up to get the size .