Skip to contentSkip to conversation

small improvement for mlock.2

DISCUSSION Yuri Kozlov 2 participants 2 messages Oct 26, 2010 – Oct 30, 2010 1 message not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

Hello.
"""
The VmLck field of the Linux-specific /proc/PID/status file shows how many kilobytes of memory the calling process has locked using mlock(), mlockall(), shmctl(2) SHM_LOCK, and mmap(2) MAP_LOCKED.
""""

Not for "calling process", but for process with PID?

Signature · 7 lines
Best Regards,
Yuri Kozlov

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 20101026111406.456fec6d-CpVCSV+zb/Ftei/ch0jEm2ZHpeb/A1Y/@public.gmane.org

#2 lore raw

Hello Yuri,

Quoted 8 lines · Yuri Kozlov

Hello.
"""
The VmLck field of the Linux-specific /proc/PID/status file shows how many kilobytes of memory the calling process has locked using mlock(), mlockall(), shmctl(2) SHM_LOCK, and mmap(2) MAP_LOCKED.
""""

Not for "calling process", but for process with PID?

Thanks. I applied:

@@ -288,7 +288,9 @@ The
.I VmLck
field of the Linux-specific
.I /proc/PID/status
-file shows how many kilobytes of memory the calling process has locked using +file shows how many kilobytes of memory the process with ID
+.I PID
+has locked using
.BR mlock (),
.BR mlockall (),
.BR shmctl (2)

Cheers,

Michael

Signature · 7 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface"; http://man7.org/tlpi/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html