FreeBSD/sys/kern/kern_sendfile.c
/*
 * Helper function to get offset within object for i page.
 */
Helper function to get offset within object for i page.
Helper function to get offset within object for i page .
static inline vm_offset_t
vmoff(int i, off_t off)
{
	if (i == 0)
		return ((vm_offset_t)off);
	return (trunc_page(off + i * PAGE_SIZE));
}
static inline vm_offset_t vmoff ( int i , off_t off ) { if ( i == 0 ) return ( ( vm_offset_t ) off ) ; return ( trunc_page ( off + i * PAGE_SIZE ) ) ; }
Helper function to get offset within object for i page.
Helper function to get offset within object for i page .