]>
Commit | Line | Data |
---|---|---|
f9453627 MK |
1 | .\" Copyright (c) 2008 Linux Foundation, written by Michael Kerrisk |
2 | .\" <mtk.manpages@gmail.com> | |
3 | .\" | |
93015253 | 4 | .\" %%%LICENSE_START(VERBATIM) |
f9453627 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 |
f9453627 | 25 | .\" |
4b8c67d9 | 26 | .TH PTHREAD_ATTR_SETAFFINITY_NP 3 2017-09-15 "Linux" "Linux Programmer's Manual" |
f9453627 MK |
27 | .SH NAME |
28 | pthread_attr_setaffinity_np, pthread_attr_getaffinity_np \- set/get | |
6ee1c2aa | 29 | CPU affinity attribute in thread attributes object |
f9453627 MK |
30 | .SH SYNOPSIS |
31 | .nf | |
86b91fdf | 32 | .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" |
f9453627 | 33 | .B #include <pthread.h> |
dbfe9c70 | 34 | .PP |
6255c227 | 35 | .BI "int pthread_attr_setaffinity_np(pthread_attr_t *" attr , |
f9453627 | 36 | .BI " size_t " cpusetsize ", const cpu_set_t *" cpuset ); |
e59f5f58 | 37 | .BI "int pthread_attr_getaffinity_np(const pthread_attr_t *" attr , |
f9453627 | 38 | .BI " size_t " cpusetsize ", cpu_set_t *" cpuset ); |
68e4db0a | 39 | .PP |
f9453627 | 40 | Compile and link with \fI\-pthread\fP. |
6030f2d8 | 41 | .fi |
f9453627 MK |
42 | .SH DESCRIPTION |
43 | The | |
44 | .BR pthread_attr_setaffinity_np () | |