blob: 6179a8d1b03ed647c6b55782e2f0ffbb665caf4d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
.\"
.\" This file and its contents are supplied under the terms of the
.\" Common Development and Distribution License ("CDDL"), version 1.0.
.\" You may only use this file in accordance with the terms of version
.\" 1.0 of the CDDL.
.\"
.\" A full copy of the text of the CDDL should have accompanied this
.\" source. A copy of the CDDL is also available via the Internet at
.\" http://www.illumos.org/license/CDDL.
.\"
.\"
.\" Copyright 2017, Richard Lowe.
.\"
.Dd Jan 18, 2017
.Dt VMEM_CONTAINS 9F
.Os
.Sh NAME
.Nm vmem_contains
.Nd check for membership in a vmem arena
.Sh SYNOPSIS
.In sys/vmem.h
.Ft int
.Fo vmem_contains
.Fa "vmem_t *vmp"
.Fa "void *vaddr"
.Fa "size_t *size"
.Fc
.Sh INTERFACE LEVEL
illumos DDI specific
.Sh PARAMETERS
.Bl -tag -width Ds
.It Fa vmp
The vmem arena
.It Fa vaddr
address of the segment to query.
.It Fa size
size of the segment to query
.El
.Sh DESCRIPTION
The
.Fn vmem_contains
function checks whether a segment of
.Fa size
bytes at
.Fa vaddr
exists within the vmem arena
.Fa vmp .
.Sh CONTEXT
This function may be called from user or kernel context.
.Sh RETURN VALUES
.Fn vmem_contains
returns non\-0 if the segment exists, and 0 otherwise.
.Sh SEE ALSO
.Xr vmem 9 ,
.Xr vmem_add 9F ,
.Xr vmem_alloc 9F ,
.Xr vmem_create 9F
|