shm_map.9 (228620) | shm_map.9 (233648) |
---|---|
1.\" 2.\" Copyright (c) 2011 Advanced Computing Technologies LLC 3.\" Written by: John H. Baldwin <jhb@FreeBSD.org> 4.\" All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: --- 10 unchanged lines hidden (view full) --- 19.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25.\" SUCH DAMAGE. 26.\" | 1.\" 2.\" Copyright (c) 2011 Advanced Computing Technologies LLC 3.\" Written by: John H. Baldwin <jhb@FreeBSD.org> 4.\" All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: --- 10 unchanged lines hidden (view full) --- 19.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25.\" SUCH DAMAGE. 26.\" |
27.\" $FreeBSD: head/share/man/man9/shm_map.9 228620 2011-12-17 06:57:35Z ru $ | 27.\" $FreeBSD: head/share/man/man9/shm_map.9 233648 2012-03-29 05:02:12Z eadler $ |
28.\" 29.Dd December 14, 2011 30.Dt SHM_MAP 9 31.Os 32.Sh NAME 33.Nm shm_map , shm_unmap 34.Nd "map shared memory objects into the kernel's address space" 35.Sh SYNOPSIS --- 84 unchanged lines hidden (view full) --- 120 error = fget(curthread, fd, CAP_MMAP, &fp); 121 if (error) 122 return (error); 123 error = shm_map(fp, 16384, 0, &mem); 124 if (error) { 125 fdrop(fp, curthread); 126 return (error); 127 } | 28.\" 29.Dd December 14, 2011 30.Dt SHM_MAP 9 31.Os 32.Sh NAME 33.Nm shm_map , shm_unmap 34.Nd "map shared memory objects into the kernel's address space" 35.Sh SYNOPSIS --- 84 unchanged lines hidden (view full) --- 120 error = fget(curthread, fd, CAP_MMAP, &fp); 121 if (error) 122 return (error); 123 error = shm_map(fp, 16384, 0, &mem); 124 if (error) { 125 fdrop(fp, curthread); 126 return (error); 127 } |
128 | 128 |
129 /* Do something with 'mem'. */ 130 131 error = shm_unmap(fp, mem, 16384); 132 fdrop(fp, curthread); 133 return (error); 134} 135.Ed 136.Sh ERRORS --- 50 unchanged lines hidden --- | 129 /* Do something with 'mem'. */ 130 131 error = shm_unmap(fp, mem, 16384); 132 fdrop(fp, curthread); 133 return (error); 134} 135.Ed 136.Sh ERRORS --- 50 unchanged lines hidden --- |