ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Linux-Clone/README
(Generate patch)

Comparing Linux-Clone/README (file contents):
Revision 1.2 by root, Wed Aug 24 03:34:24 2016 UTC vs.
Revision 1.3 by root, Thu Nov 2 07:31:16 2017 UTC

1NAME 1NAME
2 Linux::Clone - an interface to the linux clone(2) and unshare(2) 2 Linux::Clone - an interface to the linux clone, unshare, setns,
3 syscalls 3 pivot_root and kcmp syscalls
4 4
5SYNOPSIS 5SYNOPSIS
6 use Linux::Clone; 6 use Linux::Clone;
7 7
8DESCRIPTION 8DESCRIPTION
139 139
140 Linux::Clone::setns $fh_or_fd[, $nstype] 140 Linux::Clone::setns $fh_or_fd[, $nstype]
141 Calls setns(2) on the file descriptor (or file handle) $fh_or_fd. If 141 Calls setns(2) on the file descriptor (or file handle) $fh_or_fd. If
142 $nstype is missing, then 0 is used. 142 $nstype is missing, then 0 is used.
143 143
144 At the time of this writing, $nstype can be 0, 144 The argument $nstype can be 0, "Linux::Clone::NEWIPC",
145 "Linux::Clone::NEWNET", "Linux::Clone::NEUTS",
145 "Linux::Clone::NEWIPC", "Linux::Clone::NEWNET", 146 "Linux::Clone::NEWCGROUP", "Linux::Clone::NEWNS",
147 "Linux::Clone::NEWPID" or "Linux::Clone::NEWUSER".
148
149 Linux::Clone::pivot_root $new_root, $old_root
150 Calls pivot_root(2) - refer to its manpage for details.
151
152 Linux::Clone::kcmp $pid1, $pid2, $type[, $idx1, $idx2]
153 Calls kcmp(2) - refer to its manpage for details on operations.
154
155 The following $type constants are available if the kcmp syscall
156 number was available during compilation:
157
158 "Linux::Clone::KCMP_FILE", "Linux::Clone::KCMP_VM",
146 "Linux::Clone::NEUTS", "Linux::Clone::NEWCGROUP", 159 "Linux::Clone::KCMP_FILES", "Linux::Clone::KCMP_FS",
147 "Linux::Clone::NEWNS", "Linux::Clone::NEWPID" or 160 "Linux::Clone::KCMP_SIGHAND", "Linux::Clone::KCMP_IO" and
148 "Linux::Clone::NEWUSER". 161 "Linux::Clone::KCMP_SYSVSEM".
149 162
150AUTHOR 163AUTHOR
151 Marc Lehmann <schmorp@schmorp.de> 164 Marc Lehmann <schmorp@schmorp.de>
152 http://home.schmorp.de/ 165 http://home.schmorp.de/
153 166

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines