diff --git a/reference/pcntl/functions/pcntl-getcpuaffinity.xml b/reference/pcntl/functions/pcntl-getcpuaffinity.xml
new file mode 100644
index 000000000000..253453a81c94
--- /dev/null
+++ b/reference/pcntl/functions/pcntl-getcpuaffinity.xml
@@ -0,0 +1,83 @@
+
+
+
+
+ pcntl_getcpuaffinity
+ Get the cpu affinity of a process
+
+
+
+ &reftitle.description;
+
+ boolarraypcntl_getcpuaffinity
+ intnullpid&null;
+
+
+ Retrieve the cpu affinity of the pid.
+
+
+
+
+ &reftitle.parameters;
+
+
+ pid
+
+
+ If &null;, the current process ID is used.
+
+
+
+
+
+
+
+ &reftitle.returnvalues;
+
+ Returns the cpu affinity mask of the process, &return.falseforfailure;.
+
+ &return.falseproblem;
+
+
+
+ &reftitle.errors;
+
+ A ValueError is thrown when
+ pid is an invalid process id
+ or the cpu mask had failed to be created..
+
+
+ If pid is a process for which the current
+ user has no allowed permission, a E_WARNING
+ is emitted.
+
+
+
+
+ &reftitle.seealso;
+
+ pcntl_setcpuaffinity
+
+
+
+
+
diff --git a/reference/pcntl/functions/pcntl-setcpuaffinity.xml b/reference/pcntl/functions/pcntl-setcpuaffinity.xml
new file mode 100644
index 000000000000..520787cb405c
--- /dev/null
+++ b/reference/pcntl/functions/pcntl-setcpuaffinity.xml
@@ -0,0 +1,90 @@
+
+
+
+
+ pcntl_setcpuaffinity
+ Set the cpu affinity of a process
+
+
+
+ &reftitle.description;
+
+ boolpcntl_setcpuaffinity
+ intnullpid&null;
+ arrayhmask
+
+
+ Sets the cpu affinity for the pid with the cpu affinity mask given by
+ hmask.
+
+
+
+
+ &reftitle.parameters;
+
+
+ pid
+
+
+ If &null;, the current process ID is used.
+
+
+
+
+ hmask
+
+
+ The cpu affinity mask comprised of one or more cpu id for binding the process to.
+
+
+
+
+
+
+
+ &reftitle.returnvalues;
+
+ &return.success;
+
+ &return.falseproblem;
+
+
+
+ &reftitle.errors;
+
+ A TypeError is thrown if one
+ of the cpu id from the hmask is invalid.
+ A ValueError is thrown if
+ pid is an invalid process id
+ or the cpu mask had failed to be created.
+
+
+
+
+ &reftitle.seealso;
+
+ pcntl_setcpuaffinity
+
+
+
+
+
diff --git a/reference/pcntl/versions.xml b/reference/pcntl/versions.xml
index a8c087fa5e55..b00421970981 100644
--- a/reference/pcntl/versions.xml
+++ b/reference/pcntl/versions.xml
@@ -9,9 +9,11 @@
+
+