Deleted Added
full compact
mlock.2 (108028) mlock.2 (108087)
1.\" Copyright (c) 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)mlock.2 8.2 (Berkeley) 12/11/93
1.\" Copyright (c) 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)mlock.2 8.2 (Berkeley) 12/11/93
33.\" $FreeBSD: head/lib/libc/sys/mlock.2 108028 2002-12-18 09:22:32Z ru $
33.\" $FreeBSD: head/lib/libc/sys/mlock.2 108087 2002-12-19 09:40:28Z ru $
34.\"
35.Dd June 2, 1993
36.Dt MLOCK 2
37.Os
38.Sh NAME
39.Nm mlock ,
40.Nm munlock
41.Nd lock (unlock) physical pages in memory

--- 17 unchanged lines hidden (view full) ---

59bytes.
60The
61.Fn munlock
62system call unlocks pages previously locked by one or more
63.Fn mlock
64calls.
65For both, the
66.Fa addr
34.\"
35.Dd June 2, 1993
36.Dt MLOCK 2
37.Os
38.Sh NAME
39.Nm mlock ,
40.Nm munlock
41.Nd lock (unlock) physical pages in memory

--- 17 unchanged lines hidden (view full) ---

59bytes.
60The
61.Fn munlock
62system call unlocks pages previously locked by one or more
63.Fn mlock
64calls.
65For both, the
66.Fa addr
67parameter should be aligned to a multiple of the page size.
67argument should be aligned to a multiple of the page size.
68If the
69.Fa len
68If the
69.Fa len
70parameter is not a multiple of the page size, it will be rounded up
70argument is not a multiple of the page size, it will be rounded up
71to be so.
72The entire range must be allocated.
73.Pp
74After an
75.Fn mlock
76system call, the indicated pages will cause neither a non-resident page
77nor address-translation fault until they are unlocked.
78They may still cause protection-violation faults or TLB-miss faults on

--- 97 unchanged lines hidden ---
71to be so.
72The entire range must be allocated.
73.Pp
74After an
75.Fn mlock
76system call, the indicated pages will cause neither a non-resident page
77nor address-translation fault until they are unlocked.
78They may still cause protection-violation faults or TLB-miss faults on

--- 97 unchanged lines hidden ---