VMEM_CONTAINS(9F) Kernel Functions for Drivers VMEM_CONTAINS(9F)

NAME

vmem_contains, — check for membership in a vmem arena

SYNOPSIS

#include <sys/vmem.h>
int
vmem_contains(vmem_t *vmp, void *vaddr, size_t *size);

INTERFACE LEVEL

illumos DDI specific

PARAMETERS

vmp
The vmem arena
vaddr
address of the segment to query.
size
size of the segment to query

DESCRIPTION

The vmem_contains() function checks whether a segment of size bytes at vaddr exists within the vmem arena vmp.

CONTEXT

This function may be called from user or kernel context.

RETURN VALUES

vmem_contains() returns non-0 if the segment exists, and 0 otherwise.

SEE ALSO

vmem(9), vmem_add(9F), vmem_alloc(9F), vmem_create(9F)
January 18, 2017 illumos