]>
Commit | Line | Data |
---|---|---|
5655765f MK |
1 | .\" Copyright (c) 2008 Linux Foundation, written by Michael Kerrisk |
2 | .\" <mtk.manpages@gmail.com> | |
3 | .\" | |
93015253 | 4 | .\" %%%LICENSE_START(VERBATIM) |
5655765f MK |
5 | .\" Permission is granted to make and distribute verbatim copies of this |
6 | .\" manual provided the copyright notice and this permission notice are | |
7 | .\" preserved on all copies. | |
8 | .\" | |
9 | .\" Permission is granted to copy and distribute modified versions of this | |
10 | .\" manual under the conditions for verbatim copying, provided that the | |
11 | .\" entire resulting derived work is distributed under the terms of a | |
12 | .\" permission notice identical to this one. | |
13 | .\" | |
14 | .\" Since the Linux kernel and libraries are constantly changing, this | |
15 | .\" manual page may be incorrect or out-of-date. The author(s) assume no | |
16 | .\" responsibility for errors or omissions, or for damages resulting from | |
17 | .\" the use of the information contained herein. The author(s) may not | |
18 | .\" have taken the same level of care in the production of this manual, | |
19 | .\" which is licensed free of charge, as they might when working | |
20 | .\" professionally. | |
21 | .\" | |
22 | .\" Formatted or processed versions of this manual, if unaccompanied by | |
23 | .\" the source, must acknowledge the copyright and authors of this work. | |
4b72fb64 | 24 | .\" %%%LICENSE_END |
5655765f | 25 | .\" |
4b8c67d9 | 26 | .TH PTHREAD_SETAFFINITY_NP 3 2017-09-15 "Linux" "Linux Programmer's Manual" |
5655765f MK |
27 | .SH NAME |
28 | pthread_setaffinity_np, pthread_getaffinity_np \- set/get | |
29 | CPU affinity of a thread | |
30 | .SH SYNOPSIS | |
31 | .nf | |
86b91fdf | 32 | .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" |
5655765f | 33 | .B #include <pthread.h> |
f90f031e | 34 | .PP |
5655765f MK |
35 | .BI "int pthread_setaffinity_np(pthread_t " thread ", size_t " cpusetsize , |
36 | .BI " const cpu_set_t *" cpuset ); | |
37 | .BI "int pthread_getaffinity_np(pthread_t " thread ", size_t " cpusetsize , | |
38 | .BI " cpu_set_t *" cpuset ); | |
68e4db0a | 39 | .PP |
5655765f | 40 | Compile and link with \fI\-pthread\fP. |
6030f2d8 | 41 | .fi |
5655765f MK |
42 | .SH DESCRIPTION |
43 | The | |
44 | .BR pthread_setaffinity_np () | |