Unix and Linux Discussions Tagged with set |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
5 |
50,811 |
Homework & Coursework Questions |
|
|
|
3 |
28,024 |
Shell Programming and Scripting |
|
|
|
2 |
28,715 |
Solaris |
|
|
|
6 |
16,418 |
AIX |
|
|
|
5 |
4,238 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
3,947 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
6,030 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
18,941 |
AIX |
|
|
|
3 |
7,523 |
Solaris |
|
|
|
6 |
2,955 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
8,873 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
2,208 |
Shell Programming and Scripting |
|
|
|
9 |
6,996 |
Shell Programming and Scripting |
|
|
|
3 |
2,032 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
3,579 |
UNIX for Beginners Questions & Answers |
|
|
|
7 |
18,493 |
Shell Programming and Scripting |
|
|
|
14 |
11,766 |
Solaris |
|
|
|
8 |
10,868 |
AIX |
|
|
|
2 |
8,840 |
OS X (Apple) |
|
|
|
1 |
2,666 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
9,352 |
Shell Programming and Scripting |
|
|
|
2 |
2,996 |
Shell Programming and Scripting |
|
|
|
0 |
13,671 |
Shell Programming and Scripting |
|
|
|
2 |
7,770 |
Shell Programming and Scripting |
|
|
|
2 |
12,311 |
Solaris |
|
|
|
3 |
14,484 |
Shell Programming and Scripting |
|
|
|
3 |
4,463 |
UNIX for Dummies Questions & Answers |
|
|
|
7 |
18,807 |
AIX |
|
|
|
14 |
27,438 |
Shell Programming and Scripting |
|
|
|
1 |
12,183 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
25,598 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
2,875 |
Shell Programming and Scripting |
|
|
|
1 |
8,279 |
Solaris |
|
|
|
1 |
4,579 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
18,533 |
Solaris |
|
|
|
3 |
61,607 |
Shell Programming and Scripting |
|
|
|
2 |
10,769 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,218 |
Solaris |
|
|
|
2 |
10,850 |
UNIX and Linux Applications |
|
|
|
4 |
2,880 |
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