1 VMEM_CONTAINS(9F) Kernel Functions for Drivers VMEM_CONTAINS(9F) 2 3 NAME 4 vmem_contains - check for membership in a vmem arena 5 6 SYNOPSIS 7 #include <sys/vmem.h> 8 9 int 10 vmem_contains(vmem_t *vmp, void *vaddr, size_t *size); 11 12 INTERFACE LEVEL 13 illumos DDI specific 14 15 PARAMETERS 16 vmp The vmem arena 17 18 vaddr address of the segment to query. 19 20 size size of the segment to query 21 22 DESCRIPTION 23 The vmem_contains() function checks whether a segment of size bytes at 24 vaddr exists within the vmem arena vmp. 25 26 CONTEXT 27 This function may be called from user or kernel context. 28 29 RETURN VALUES 30 vmem_contains() returns non-0 if the segment exists, and 0 otherwise. 31 32 SEE ALSO 33 vmem(9), vmem_add(9F), vmem_alloc(9F), vmem_create(9F) 34 35 illumos January 18, 2017 illumos