Unix and Linux Discussions Tagged with set |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
5 |
48,288 |
Homework & Coursework Questions |
|
|
|
3 |
27,684 |
Shell Programming and Scripting |
|
|
|
2 |
27,184 |
Solaris |
|
|
|
6 |
15,881 |
AIX |
|
|
|
5 |
3,769 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
3,530 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
5,323 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
18,515 |
AIX |
|
|
|
3 |
7,288 |
Solaris |
|
|
|
6 |
2,893 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
8,020 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
2,180 |
Shell Programming and Scripting |
|
|
|
9 |
6,881 |
Shell Programming and Scripting |
|
|
|
3 |
1,779 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
3,345 |
UNIX for Beginners Questions & Answers |
|
|
|
7 |
18,248 |
Shell Programming and Scripting |
|
|
|
14 |
11,303 |
Solaris |
|
|
|
8 |
10,524 |
AIX |
|
|
|
2 |
7,820 |
OS X (Apple) |
|
|
|
1 |
2,418 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
9,256 |
Shell Programming and Scripting |
|
|
|
2 |
2,952 |
Shell Programming and Scripting |
|
|
|
0 |
13,573 |
Shell Programming and Scripting |
|
|
|
2 |
7,704 |
Shell Programming and Scripting |
|
|
|
2 |
12,199 |
Solaris |
|
|
|
3 |
14,435 |
Shell Programming and Scripting |
|
|
|
3 |
4,426 |
UNIX for Dummies Questions & Answers |
|
|
|
7 |
18,674 |
AIX |
|
|
|
14 |
27,310 |
Shell Programming and Scripting |
|
|
|
1 |
12,156 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
25,425 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
2,843 |
Shell Programming and Scripting |
|
|
|
1 |
8,207 |
Solaris |
|
|
|
1 |
4,557 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
18,473 |
Solaris |
|
|
|
3 |
61,471 |
Shell Programming and Scripting |
|
|
|
2 |
10,698 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,164 |
Solaris |
|
|
|
2 |
10,182 |
UNIX and Linux Applications |
|
|
|
4 |
2,862 |
Shell Programming and Scripting |
CPUSET(3) BSD Library Functions Manual CPUSET(3)
NAME
cpuset_create, cpuset_destroy, cpuset_zero, cpuset_set, cpuset_clr, cpuset_isset, cpuset_size -- dynamic CPU sets
SYNOPSIS
#include <sched.h>
cpuset_t *
cpuset_create(void);
void
cpuset_destroy(cpuset_t *set);
void
cpuset_zero(cpuset_t *set);
int
cpuset_set(cpuid_t cpu, cpuset_t *set);
int
cpuset_clr(cpuid_t cpu, cpuset_t *set);
int
cpuset_isset(cpuid_t cpu, const cpuset_t *set);
size_t
cpuset_size(const cpuset_t *set);
DESCRIPTION
This section describes the functions used to create, set, use and destroy the dynamic CPU sets.
This API can be used with the POSIX threads, see pthread(3) and affinity(3).
The ID of the primary CPU in the system is 0.
FUNCTIONS
cpuset_create()
Allocates and initializes a clean CPU-set. Returns the pointer to the CPU-set, or NULL on failure.
cpuset_destroy(set)
Destroy the CPU-set specified by set.
cpuset_zero(set)
Makes the CPU-set specified by set clean, that is, memory is initialized to zero bytes, and none of the CPUs set.
cpuset_set(cpu, set)
Sets the CPU specified by cpu in set. Returns zero on success, and -1 if cpu is invalid.
cpuset_clr(cpu, set)
Clears the CPU specified by cpu in the CPU-set set. Returns zero on success, and -1 if cpu is invalid.
cpuset_isset(cpu, set)
Checks if CPU specified by cpu is set in the CPU-set set. Returns the positive number if set, zero if not set, and -1 if cpu is
invalid.
cpuset_size(set)
Returns the size in bytes of CPU-set specified by set.
SEE ALSO
affinity(3), pset(3), sched(3), schedctl(8), kcpuset(9)
HISTORY
The dynamic CPU sets appeared in NetBSD 5.0.
BSD
November 2, 2011 BSD