]>
Commit | Line | Data |
---|---|---|
a1eaacb1 | 1 | '\" t |
f9453627 MK |
2 | .\" Copyright (c) 2008 Linux Foundation, written by Michael Kerrisk |
3 | .\" <mtk.manpages@gmail.com> | |
4 | .\" | |
5fbde956 | 5 | .\" SPDX-License-Identifier: Linux-man-pages-copyleft |
f9453627 | 6 | .\" |
4c1c5274 | 7 | .TH pthread_attr_setaffinity_np 3 (date) "Linux man-pages (unreleased)" |
f9453627 MK |
8 | .SH NAME |
9 | pthread_attr_setaffinity_np, pthread_attr_getaffinity_np \- set/get | |
6ee1c2aa | 10 | CPU affinity attribute in thread attributes object |
6d6b4155 AC |
11 | .SH LIBRARY |
12 | POSIX threads library | |
8fc3b2cf | 13 | .RI ( libpthread ", " \-lpthread ) |
f9453627 MK |
14 | .SH SYNOPSIS |
15 | .nf | |
86b91fdf | 16 | .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" |
f9453627 | 17 | .B #include <pthread.h> |
c6d039a3 | 18 | .P |
6255c227 | 19 | .BI "int pthread_attr_setaffinity_np(pthread_attr_t *" attr , |
f9453627 | 20 | .BI " size_t " cpusetsize ", const cpu_set_t *" cpuset ); |
e59f5f58 | 21 | .BI "int pthread_attr_getaffinity_np(const pthread_attr_t *" attr , |
f9453627 | 22 | .BI " size_t " cpusetsize ", cpu_set_t *" cpuset ); |
6030f2d8 | 23 | .fi |
f9453627 MK |
24 | .SH DESCRIPTION |
25 | The | |
26 | .BR pthread_attr_setaffinity_np () | |