9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I am new to linux. I am using more command to view the contents of a file. If the file has many pages i am using f to move forward to the next page.
But when i press f it skips to two pages instead of one page. i checked the man more.
It shows the default is 1. Please share your... (1 Reply)
Discussion started by: nokiak810
1 Replies
2. Programming
Dear colleagues,
One of my friend have a problem with c code. While compiling a c program it displays a message like
"array type has incomplete element type". Any body can provide a solution for it.
Jaganadh.G (1 Reply)
Discussion started by: jaganadh
1 Replies
3. Shell Programming and Scripting
Can one string type variable changed into the date type variable. (1 Reply)
Discussion started by: rinku
1 Replies
4. UNIX for Dummies Questions & Answers
okay.. have monitored that the page out/h max and avg have been 0 for one week. is this possible...? huge applications will have swap space being utilised ... so i am suprised that for one whole week, it has actually been zero
please advise
thanks (1 Reply)
Discussion started by: yls177
1 Replies
5. UNIX for Dummies Questions & Answers
Hi folks,
I want to know all the commands for which man pages are available. How do i get it?
Cheers,
Nisha (4 Replies)
Discussion started by: Nisha
4 Replies
6. UNIX for Advanced & Expert Users
hi,
plz tell me, how can get the inactive pages in HP UX.
bye.... (1 Reply)
Discussion started by: venkat_t
1 Replies
7. UNIX for Advanced & Expert Users
hi,
can any body tell, what are wired pages in HP_UX.
which structure contains that and plz tell the corresponding
system call to get it. (1 Reply)
Discussion started by: venkat_t
1 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I've written now a man pages, but I don't knwo how to get 'man' to view them. Where have I to put this files, which directories are allowed??
THX Bensky (3 Replies)
Discussion started by: bensky
3 Replies
9. UNIX for Dummies Questions & Answers
Hello ,
I just installed openssh in my system . I actually tried to man sshd but it says no entry , though there is a man directory in the installation which have the man pages for sshd .
Can anyone tell me how should i install these man pages .
DP (2 Replies)
Discussion started by: DPAI
2 Replies
MUNLOCK(2) Linux Programmer's Manual MUNLOCK(2)
NAME
munlock - reenable paging for some parts of memory
SYNOPSIS
#include <sys/mman.h>
int munlock(const void *addr, size_t len);
DESCRIPTION
munlock reenables paging for the memory in the range starting at addr with length len bytes. All pages which contain a part of the speci-
fied memory range can after calling munlock be moved to external swap space again by the kernel.
Memory locks do not stack, i.e., pages which have been locked several times by calls to mlock or mlockall will be unlocked by a single call
to munlock for the corresponding range or by munlockall. Pages which are mapped to several locations or by several processes stay locked
into RAM as long as they are locked at least at one location or by at least one process.
On POSIX systems on which mlock and munlock are available, _POSIX_MEMLOCK_RANGE is defined in <unistd.h> and the value PAGESIZE from <lim-
its.h> indicates the number of bytes per page.
RETURN VALUE
On success, munlock returns zero. On error, -1 is returned, errno is set appropriately, and no changes are made to any locks in the
address space of the process.
ERRORS
ENOMEM Some of the specified address range does not correspond to mapped pages in the address space of the process.
EINVAL len was not a positive number.
CONFORMING TO
POSIX.1b, SVr4
SEE ALSO
mlock(2), mlockall(2), munlockall(2)
Linux 1.3.43 1995-11-26 MUNLOCK(2)