Linux gir02.nhanhoa.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC 2023 x86_64
LiteSpeed
Server IP : 103.124.95.33 & Your IP : 216.73.217.104
Domains :
Cant Read [ /etc/named.conf ]
User : nhsacmvr
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
include /
Delete
Unzip
Name
Size
Permission
Date
Action
GL
[ DIR ]
drwxr-xr-x
2024-01-11 09:54
X11
[ DIR ]
drwxr-xr-x
2026-05-09 03:39
arpa
[ DIR ]
drwxr-xr-x
2026-07-30 16:39
asm
[ DIR ]
drwxr-xr-x
2026-09-09 17:38
asm-generic
[ DIR ]
drwxr-xr-x
2026-09-09 17:38
bind9
[ DIR ]
drwxr-xr-x
2026-09-24 01:05
bits
[ DIR ]
drwxr-xr-x
2026-07-30 16:39
bsock
[ DIR ]
drwxr-xr-x
2026-09-24 00:59
c++
[ DIR ]
drwxr-xr-x
2025-08-26 09:44
criu-lve
[ DIR ]
drwxr-xr-x
2026-07-30 16:36
curl
[ DIR ]
drwxr-xr-x
2026-08-30 17:53
drm
[ DIR ]
drwxr-xr-x
2026-09-09 17:38
e2p
[ DIR ]
drwxr-xr-x
2026-05-09 03:53
et
[ DIR ]
drwxr-xr-x
2026-05-09 02:40
event2
[ DIR ]
drwxr-xr-x
2026-09-24 01:05
ext2fs
[ DIR ]
drwxr-xr-x
2026-05-09 03:53
finclude
[ DIR ]
drwxr-xr-x
2026-07-30 16:39
fontconfig
[ DIR ]
drwxr-xr-x
2024-01-11 09:54
freetype2
[ DIR ]
drwxr-xr-x
2026-05-09 03:53
fstrm
[ DIR ]
drwxr-xr-x
2024-01-11 09:54
gdbm
[ DIR ]
drwxr-xr-x
2024-01-11 09:54
gnu
[ DIR ]
drwxr-xr-x
2026-07-30 16:39
google
[ DIR ]
drwxr-xr-x
2024-01-11 09:54
gssapi
[ DIR ]
drwxr-xr-x
2026-05-14 18:15
gssrpc
[ DIR ]
drwxr-xr-x
2026-05-14 18:15
json-c
[ DIR ]
drwxr-xr-x
2024-01-11 09:54
kadm5
[ DIR ]
drwxr-xr-x
2026-05-14 18:15
krb5
[ DIR ]
drwxr-xr-x
2026-05-14 18:15
libexslt
[ DIR ]
drwxr-xr-x
2026-07-30 16:56
libltdl
[ DIR ]
drwxr-xr-x
2024-01-11 09:54
libpng16
[ DIR ]
drwxr-xr-x
2026-07-30 16:57
libxml2
[ DIR ]
drwxr-xr-x
2026-09-21 22:06
libxslt
[ DIR ]
drwxr-xr-x
2026-07-30 16:56
linux
[ DIR ]
drwxr-xr-x
2026-09-09 17:38
lzma
[ DIR ]
drwxr-xr-x
2024-01-11 09:54
misc
[ DIR ]
drwxr-xr-x
2026-09-09 17:38
mtd
[ DIR ]
drwxr-xr-x
2026-09-09 17:38
ncurses
[ DIR ]
drwxr-xr-x
2024-01-11 09:54
ncursesw
[ DIR ]
drwxr-xr-x
2024-01-11 09:54
net
[ DIR ]
drwxr-xr-x
2026-07-30 16:39
netash
[ DIR ]
drwxr-xr-x
2026-07-30 16:39
netatalk
[ DIR ]
drwxr-xr-x
2026-07-30 16:39
netax25
[ DIR ]
drwxr-xr-x
2026-07-30 16:39
neteconet
[ DIR ]
drwxr-xr-x
2026-07-30 16:39
netinet
[ DIR ]
drwxr-xr-x
2026-07-30 16:39
netipx
[ DIR ]
drwxr-xr-x
2026-07-30 16:39
netiucv
[ DIR ]
drwxr-xr-x
2026-07-30 16:39
netpacket
[ DIR ]
drwxr-xr-x
2026-07-30 16:39
netrom
[ DIR ]
drwxr-xr-x
2026-07-30 16:39
netrose
[ DIR ]
drwxr-xr-x
2026-07-30 16:39
nfs
[ DIR ]
drwxr-xr-x
2026-07-30 16:39
openssl
[ DIR ]
drwxr-xr-x
2026-07-30 16:29
perf
[ DIR ]
drwxr-xr-x
2026-09-09 17:38
protobuf-c
[ DIR ]
drwxr-xr-x
2024-01-11 09:54
protocols
[ DIR ]
drwxr-xr-x
2026-07-30 16:39
python2.7
[ DIR ]
drwxr-xr-x
2026-05-09 03:40
python3.12
[ DIR ]
drwxr-xr-x
2026-09-04 05:22
python3.6m
[ DIR ]
drwxr-xr-x
2026-08-30 17:53
rdma
[ DIR ]
drwxr-xr-x
2026-09-09 17:38
rpc
[ DIR ]
drwxr-xr-x
2026-07-30 16:39
scsi
[ DIR ]
drwxr-xr-x
2026-09-09 17:38
security
[ DIR ]
drwxr-xr-x
2026-08-30 17:59
selinux
[ DIR ]
drwxr-xr-x
2026-05-09 03:31
sepol
[ DIR ]
drwxr-xr-x
2024-01-11 09:44
sound
[ DIR ]
drwxr-xr-x
2026-09-09 17:38
sys
[ DIR ]
drwxr-xr-x
2026-07-30 16:39
uuid
[ DIR ]
drwxr-xr-x
2026-05-09 03:53
video
[ DIR ]
drwxr-xr-x
2026-09-09 17:38
webp
[ DIR ]
drwxr-xr-x
2026-05-09 03:53
xcb
[ DIR ]
drwxr-xr-x
2024-01-11 09:54
xen
[ DIR ]
drwxr-xr-x
2026-09-09 17:38
FlexLexer.h
6.73
KB
-rw-r--r--
2019-10-12 12:33
a.out.h
4.25
KB
-rw-r--r--
2026-07-21 14:46
aio.h
7.28
KB
-rw-r--r--
2026-07-21 14:46
aliases.h
1.98
KB
-rw-r--r--
2026-07-21 14:46
alloca.h
1.17
KB
-rw-r--r--
2026-07-21 14:46
ar.h
1.69
KB
-rw-r--r--
2026-07-21 14:46
argp.h
24.82
KB
-rw-r--r--
2026-07-21 14:46
argz.h
5.91
KB
-rw-r--r--
2026-07-21 14:46
assert.h
4.45
KB
-rw-r--r--
2026-07-21 14:46
autosprintf.h
2.33
KB
-rw-r--r--
2019-11-18 17:16
byteswap.h
1.37
KB
-rw-r--r--
2026-07-21 14:46
bzlib.h
6.1
KB
-rw-r--r--
2010-09-10 23:08
com_err.h
2.07
KB
-rw-r--r--
2020-03-21 04:24
complex.h
7
KB
-rw-r--r--
2026-07-21 14:46
cpio.h
2.21
KB
-rw-r--r--
2026-07-21 14:46
cpuidle.h
844
B
-rw-r--r--
2026-08-24 17:20
crypt.h
8.9
KB
-rw-r--r--
2021-10-09 04:04
ctype.h
10.71
KB
-rw-r--r--
2026-07-21 14:46
curses.h
97.29
KB
-rw-r--r--
2023-10-14 18:54
cursesapp.h
6.62
KB
-rw-r--r--
2023-10-14 18:54
cursesf.h
27.2
KB
-rw-r--r--
2023-10-14 18:54
cursesm.h
19.22
KB
-rw-r--r--
2023-10-14 18:54
cursesp.h
8.4
KB
-rw-r--r--
2023-10-14 18:54
cursesw.h
48.55
KB
-rw-r--r--
2023-10-14 18:54
cursslk.h
7.13
KB
-rw-r--r--
2023-10-14 18:54
dbm.h
1.38
KB
-rw-r--r--
2022-10-08 13:22
dirent.h
12.19
KB
-rw-r--r--
2026-07-21 14:46
dlfcn.h
7.07
KB
-rw-r--r--
2026-07-21 14:46
elf.h
170.73
KB
-rw-r--r--
2026-07-21 14:46
endian.h
3.11
KB
-rw-r--r--
2026-07-21 14:46
entities.h
4.81
KB
-rw-r--r--
2017-08-30 11:05
envz.h
2.8
KB
-rw-r--r--
2026-07-21 14:46
err.h
2.16
KB
-rw-r--r--
2026-07-21 14:46
errno.h
1.64
KB
-rw-r--r--
2026-07-21 14:46
error.h
1.99
KB
-rw-r--r--
2026-07-21 14:46
eti.h
2.82
KB
-rw-r--r--
2023-10-14 18:54
etip.h
9.47
KB
-rw-r--r--
2023-10-14 18:54
evdns.h
1.97
KB
-rw-r--r--
2026-09-16 11:40
event.h
2.68
KB
-rw-r--r--
2026-09-16 11:40
evhttp.h
1.99
KB
-rw-r--r--
2026-09-16 11:40
evrpc.h
1.97
KB
-rw-r--r--
2026-09-16 11:40
evutil.h
1.74
KB
-rw-r--r--
2026-09-16 11:40
execinfo.h
1.49
KB
-rw-r--r--
2026-07-21 14:46
expat.h
43.24
KB
-rw-r--r--
2026-09-08 04:51
expat_config.h
3.82
KB
-rw-r--r--
2026-09-08 04:51
expat_external.h
5.89
KB
-rw-r--r--
2026-09-08 04:51
fcntl.h
10.7
KB
-rw-r--r--
2026-07-21 14:46
features.h
15.69
KB
-rw-r--r--
2026-07-21 14:46
fenv.h
5.72
KB
-rw-r--r--
2026-07-21 14:46
fmtmsg.h
3.16
KB
-rw-r--r--
2026-07-21 14:46
fnmatch.h
2.24
KB
-rw-r--r--
2026-07-21 14:46
form.h
18.17
KB
-rw-r--r--
2023-10-14 18:54
fpu_control.h
3.5
KB
-rw-r--r--
2026-07-21 14:46
fstab.h
3.04
KB
-rw-r--r--
2026-07-21 14:46
fstrm.h
12.71
KB
-rw-r--r--
2019-03-11 20:58
fts.h
8.18
KB
-rw-r--r--
2026-07-21 14:46
ftw.h
5.13
KB
-rw-r--r--
2026-07-21 14:46
gconv.h
3.99
KB
-rw-r--r--
2026-07-21 14:46
gcrypt.h
68.71
KB
-rw-r--r--
2026-07-29 02:15
gd.h
56.42
KB
-rw-r--r--
2017-08-30 11:05
gd_color_map.h
478
B
-rw-r--r--
2017-08-30 11:05
gd_errors.h
1.47
KB
-rw-r--r--
2017-08-30 11:05
gd_io.h
3.05
KB
-rw-r--r--
2017-08-30 11:05
gdbm.h
10.1
KB
-rw-r--r--
2022-10-08 13:22
gdcache.h
2.83
KB
-rw-r--r--
2017-08-30 11:05
gdfontg.h
553
B
-rw-r--r--
2017-08-30 11:05
gdfontl.h
551
B
-rw-r--r--
2017-08-30 11:05
gdfontmb.h
519
B
-rw-r--r--
2017-08-30 11:05
gdfonts.h
515
B
-rw-r--r--
2017-08-30 11:05
gdfontt.h
546
B
-rw-r--r--
2017-08-30 11:05
gdfx.h
497
B
-rw-r--r--
2017-08-30 11:05
gdpp.h
50.94
KB
-rw-r--r--
2017-08-30 11:05
getopt.h
1.43
KB
-rw-r--r--
2026-07-21 14:46
gettext-po.h
15.17
KB
-rw-r--r--
2019-11-18 17:17
glob.h
6.46
KB
-rw-r--r--
2026-07-21 14:46
gnu-versions.h
2.29
KB
-rw-r--r--
2026-07-21 14:46
gnumake.h
2.84
KB
-rw-r--r--
2022-04-18 16:38
gpg-error.h
66.29
KB
-rw-r--r--
2019-10-12 12:20
gpgrt.h
66.29
KB
-rw-r--r--
2019-10-12 12:20
grp.h
6.53
KB
-rw-r--r--
2026-07-21 14:46
gshadow.h
4.42
KB
-rw-r--r--
2026-07-21 14:46
gssapi.h
181
B
-rw-r--r--
2026-05-13 06:34
iconv.h
1.81
KB
-rw-r--r--
2026-07-21 14:46
idn-free.h
2.41
KB
-rw-r--r--
2019-10-13 16:55
idn-int.h
20
B
-rw-r--r--
2019-10-13 16:55
idna.h
3.48
KB
-rw-r--r--
2019-10-13 16:55
ieee754.h
4.79
KB
-rw-r--r--
2026-07-21 14:46
ifaddrs.h
2.77
KB
-rw-r--r--
2026-07-21 14:46
inttypes.h
11.61
KB
-rw-r--r--
2026-07-21 14:46
jconfig-64.h
2.17
KB
-rw-r--r--
2025-05-14 12:43
jconfig.h
246
B
-rw-r--r--
2025-05-14 12:43
jerror.h
14.73
KB
-rw-r--r--
2025-05-14 12:43
jmorecfg.h
14.7
KB
-rw-r--r--
2025-05-14 12:43
jpegint.h
15.22
KB
-rw-r--r--
2025-05-14 12:43
jpeglib.h
48.71
KB
-rw-r--r--
2025-05-14 12:43
kdb.h
67.66
KB
-rw-r--r--
2026-05-13 06:34
keyutils.h
7.52
KB
-rw-r--r--
2021-10-08 13:50
krad.h
8.72
KB
-rw-r--r--
2026-05-13 06:34
krb5.h
402
B
-rw-r--r--
2026-05-13 06:34
langinfo.h
17.43
KB
-rw-r--r--
2026-07-21 14:46
lastlog.h
126
B
-rw-r--r--
2026-07-21 14:46
libaio.h
8.73
KB
-rw-r--r--
2019-11-13 13:59
libgen.h
1.35
KB
-rw-r--r--
2026-07-21 14:46
libintl.h
4.47
KB
-rw-r--r--
2026-07-21 14:46
libtasn1.h
12.62
KB
-rw-r--r--
2026-07-08 15:05
limits.h
5.29
KB
-rw-r--r--
2026-07-21 14:46
link.h
7.05
KB
-rw-r--r--
2026-07-21 14:46
locale.h
7.49
KB
-rw-r--r--
2026-07-21 14:46
ltdl.h
5.58
KB
-rw-r--r--
2019-10-11 14:55
lzma.h
9.59
KB
-rw-r--r--
2018-04-29 15:10
magic.h
5.46
KB
-rw-r--r--
2025-10-07 06:30
malloc.h
5.96
KB
-rw-r--r--
2026-07-21 14:46
math.h
52.07
KB
-rw-r--r--
2026-07-21 14:46
mcheck.h
2.38
KB
-rw-r--r--
2026-07-21 14:46
memory.h
955
B
-rw-r--r--
2026-07-21 14:46
menu.h
11.91
KB
-rw-r--r--
2023-10-14 18:54
mntent.h
3.28
KB
-rw-r--r--
2026-07-21 14:46
monetary.h
1.76
KB
-rw-r--r--
2026-07-21 14:46
mqueue.h
3.67
KB
-rw-r--r--
2026-07-21 14:46
nc_tparm.h
4.1
KB
-rw-r--r--
2023-10-14 18:54
ncurses.h
97.29
KB
-rw-r--r--
2023-10-14 18:54
ncurses_dll.h
4.18
KB
-rw-r--r--
2023-10-14 18:54
ndbm.h
2.4
KB
-rw-r--r--
2022-10-08 13:22
netdb.h
27.44
KB
-rw-r--r--
2026-07-21 14:46
nl_types.h
1.71
KB
-rw-r--r--
2026-07-21 14:46
nss.h
1.83
KB
-rw-r--r--
2026-07-21 14:46
numa.h
13.7
KB
-rw-r--r--
2024-04-06 13:42
numacompat1.h
1.2
KB
-rw-r--r--
2024-04-06 13:42
numaif.h
1.65
KB
-rw-r--r--
2024-04-06 13:42
obstack.h
20.81
KB
-rw-r--r--
2026-07-21 14:46
panel.h
4.03
KB
-rw-r--r--
2023-10-14 18:54
paths.h
2.91
KB
-rw-r--r--
2026-07-21 14:46
pcre.h
30.97
KB
-rw-r--r--
2021-10-08 19:17
pcre2.h
43.75
KB
-rw-r--r--
2022-08-02 16:07
pcre2posix.h
5.67
KB
-rw-r--r--
2022-08-02 16:07
pcre_scanner.h
6.45
KB
-rw-r--r--
2021-10-08 19:17
pcre_stringpiece.h
6.16
KB
-rw-r--r--
2021-10-08 19:17
pcrecpp.h
25.91
KB
-rw-r--r--
2021-10-08 19:17
pcrecpparg.h
6.62
KB
-rw-r--r--
2021-10-08 19:17
pcreposix.h
5.32
KB
-rw-r--r--
2021-10-08 19:17
png.h
140.77
KB
-rw-r--r--
2026-06-25 17:21
pngconf.h
22.31
KB
-rw-r--r--
2026-06-25 17:21
pnglibconf.h
7.39
KB
-rw-r--r--
2026-06-25 17:21
poll.h
22
B
-rw-r--r--
2026-07-21 14:46
pr29.h
2.07
KB
-rw-r--r--
2019-10-13 16:55
printf.h
6.64
KB
-rw-r--r--
2026-07-21 14:46
proc_service.h
3.39
KB
-rw-r--r--
2026-07-21 14:46
profile.h
11.87
KB
-rw-r--r--
2026-05-13 06:34
pthread.h
40.3
KB
-rw-r--r--
2026-07-21 14:46
pty.h
1.53
KB
-rw-r--r--
2026-07-21 14:46
punycode.h
9.16
KB
-rw-r--r--
2019-10-13 16:55
pwd.h
6.01
KB
-rw-r--r--
2026-07-21 14:46
re_comp.h
962
B
-rw-r--r--
2026-07-21 14:46
regex.h
24.14
KB
-rw-r--r--
2026-07-21 14:46
regexp.h
1.41
KB
-rw-r--r--
2026-07-21 14:46
resolv.h
11.87
KB
-rw-r--r--
2026-07-21 14:46
sched.h
4.62
KB
-rw-r--r--
2026-07-21 14:46
search.h
5.1
KB
-rw-r--r--
2026-07-21 14:46
semaphore.h
2.34
KB
-rw-r--r--
2026-07-21 14:46
setjmp.h
3.58
KB
-rw-r--r--
2026-07-21 14:46
sgtty.h
1.31
KB
-rw-r--r--
2026-07-21 14:46
shadow.h
5.34
KB
-rw-r--r--
2026-07-21 14:46
signal.h
11.96
KB
-rw-r--r--
2026-07-21 14:46
spawn.h
6.53
KB
-rw-r--r--
2026-07-21 14:46
stab.h
264
B
-rw-r--r--
2026-07-21 14:46
stdc-predef.h
2.24
KB
-rw-r--r--
2026-07-21 14:46
stdint.h
8.27
KB
-rw-r--r--
2026-07-21 14:46
stdio.h
29.46
KB
-rw-r--r--
2026-07-21 14:46
stdio_ext.h
2.73
KB
-rw-r--r--
2026-07-21 14:46
stdlib.h
34.82
KB
-rw-r--r--
2026-07-21 14:46
string.h
17.17
KB
-rw-r--r--
2026-07-21 14:46
stringprep.h
8.03
KB
-rw-r--r--
2019-10-13 16:55
strings.h
4.64
KB
-rw-r--r--
2026-07-21 14:46
syscall.h
25
B
-rw-r--r--
2026-07-21 14:46
sysexits.h
5.11
KB
-rw-r--r--
2026-07-21 14:46
syslog.h
24
B
-rw-r--r--
2026-07-21 14:46
tar.h
3.7
KB
-rw-r--r--
2026-07-21 14:46
term.h
40.22
KB
-rw-r--r--
2023-10-14 18:54
term_entry.h
8.55
KB
-rw-r--r--
2023-10-14 18:54
termcap.h
3.39
KB
-rw-r--r--
2023-10-14 18:54
termio.h
214
B
-rw-r--r--
2026-07-21 14:46
termios.h
3.51
KB
-rw-r--r--
2026-07-21 14:46
tgmath.h
30.75
KB
-rw-r--r--
2026-07-21 14:46
thread_db.h
15.65
KB
-rw-r--r--
2026-07-21 14:46
threads.h
6.5
KB
-rw-r--r--
2026-07-21 14:46
tic.h
13.32
KB
-rw-r--r--
2023-10-14 18:54
tiff.h
35.14
KB
-rw-r--r--
2026-09-21 03:41
tiffconf-64.h
3.35
KB
-rw-r--r--
2026-09-21 03:41
tiffconf.h
250
B
-rw-r--r--
2026-09-21 03:41
tiffio.h
22.68
KB
-rw-r--r--
2026-09-21 03:41
tiffio.hxx
1.66
KB
-rw-r--r--
2026-09-21 03:41
tiffvers.h
410
B
-rw-r--r--
2026-09-21 03:41
time.h
10.12
KB
-rw-r--r--
2026-07-21 14:46
tld.h
4.54
KB
-rw-r--r--
2019-10-13 16:55
ttyent.h
2.44
KB
-rw-r--r--
2026-07-21 14:46
uchar.h
1.95
KB
-rw-r--r--
2026-07-21 14:46
ucontext.h
1.99
KB
-rw-r--r--
2026-07-21 14:46
ulimit.h
1.55
KB
-rw-r--r--
2026-07-21 14:46
unctrl.h
3.03
KB
-rw-r--r--
2023-10-14 18:54
unistd.h
41.74
KB
-rw-r--r--
2026-07-21 14:46
utime.h
1.47
KB
-rw-r--r--
2026-07-21 14:46
utmp.h
3.15
KB
-rw-r--r--
2026-07-21 14:46
utmpx.h
4
KB
-rw-r--r--
2026-07-21 14:46
values.h
1.91
KB
-rw-r--r--
2026-07-21 14:46
verto-module.h
6.48
KB
-rw-r--r--
2022-10-08 07:49
verto.h
18.98
KB
-rw-r--r--
2022-10-08 07:49
wait.h
22
B
-rw-r--r--
2026-07-21 14:46
wchar.h
30.38
KB
-rw-r--r--
2026-07-21 14:46
wctype.h
5.42
KB
-rw-r--r--
2026-07-21 14:46
wordexp.h
2.44
KB
-rw-r--r--
2026-07-21 14:46
zconf.h
15.88
KB
-rw-r--r--
2023-10-11 22:02
zlib.h
94
KB
-rw-r--r--
2023-10-11 22:02
Save
Rename
/* Copyright (C) 2003,2004 Andi Kleen, SuSE Labs. libnuma is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; version 2.1. libnuma is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should find a copy of v2.1 of the GNU Lesser General Public License somewhere on your Linux system; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef _NUMA_H #define _NUMA_H 1 /* allow an application to test for the current programming interface: */ #define LIBNUMA_API_VERSION 2 /* Simple NUMA policy library */ #include <stddef.h> #include <string.h> #include <sys/types.h> #include <stdlib.h> #if defined(__x86_64__) || defined(__i386__) #define NUMA_NUM_NODES 128 #else #define NUMA_NUM_NODES 2048 #endif #ifdef __cplusplus extern "C" { #endif typedef struct { unsigned long n[NUMA_NUM_NODES/(sizeof(unsigned long)*8)]; } nodemask_t; struct bitmask { unsigned long size; /* number of bits in the map */ unsigned long *maskp; }; /* operations on struct bitmask */ int numa_bitmask_isbitset(const struct bitmask *, unsigned int); struct bitmask *numa_bitmask_setall(struct bitmask *); struct bitmask *numa_bitmask_clearall(struct bitmask *); struct bitmask *numa_bitmask_setbit(struct bitmask *, unsigned int); struct bitmask *numa_bitmask_clearbit(struct bitmask *, unsigned int); unsigned int numa_bitmask_nbytes(struct bitmask *); unsigned int numa_bitmask_weight(const struct bitmask *); struct bitmask *numa_bitmask_alloc(unsigned int); void numa_bitmask_free(struct bitmask *); int numa_bitmask_equal(const struct bitmask *, const struct bitmask *); void copy_nodemask_to_bitmask(nodemask_t *, struct bitmask *); void copy_bitmask_to_nodemask(struct bitmask *, nodemask_t *); void copy_bitmask_to_bitmask(struct bitmask *, struct bitmask *); /* compatibility for codes that used them: */ static inline void nodemask_zero(nodemask_t *mask) { struct bitmask tmp; tmp.maskp = (unsigned long *)mask; tmp.size = sizeof(nodemask_t) * 8; numa_bitmask_clearall(&tmp); } static inline void nodemask_zero_compat(nodemask_t *mask) { struct bitmask tmp; tmp.maskp = (unsigned long *)mask; tmp.size = sizeof(nodemask_t) * 8; numa_bitmask_clearall(&tmp); } static inline void nodemask_set_compat(nodemask_t *mask, int node) { mask->n[node / (8*sizeof(unsigned long))] |= (1UL<<(node%(8*sizeof(unsigned long)))); } static inline void nodemask_clr_compat(nodemask_t *mask, int node) { mask->n[node / (8*sizeof(unsigned long))] &= ~(1UL<<(node%(8*sizeof(unsigned long)))); } static inline int nodemask_isset_compat(const nodemask_t *mask, int node) { if ((unsigned)node >= NUMA_NUM_NODES) return 0; if (mask->n[node / (8*sizeof(unsigned long))] & (1UL<<(node%(8*sizeof(unsigned long))))) return 1; return 0; } static inline int nodemask_equal(const nodemask_t *a, const nodemask_t *b) { struct bitmask tmp_a, tmp_b; tmp_a.maskp = (unsigned long *)a; tmp_a.size = sizeof(nodemask_t) * 8; tmp_b.maskp = (unsigned long *)b; tmp_b.size = sizeof(nodemask_t) * 8; return numa_bitmask_equal(&tmp_a, &tmp_b); } static inline int nodemask_equal_compat(const nodemask_t *a, const nodemask_t *b) { struct bitmask tmp_a, tmp_b; tmp_a.maskp = (unsigned long *)a; tmp_a.size = sizeof(nodemask_t) * 8; tmp_b.maskp = (unsigned long *)b; tmp_b.size = sizeof(nodemask_t) * 8; return numa_bitmask_equal(&tmp_a, &tmp_b); } /* NUMA support available. If this returns a negative value all other function in this library are undefined. */ int numa_available(void); /* Basic NUMA state */ /* Get max available node */ int numa_max_node(void); int numa_max_possible_node(void); /* Return preferred node */ int numa_preferred(void); /* Return node size and free memory */ long long numa_node_size64(int node, long long *freep); long numa_node_size(int node, long *freep); int numa_pagesize(void); /* Set with all nodes from which the calling process may allocate memory. Only valid after numa_available. */ extern struct bitmask *numa_all_nodes_ptr; /* Set with all nodes the kernel has exposed to userspace */ extern struct bitmask *numa_nodes_ptr; /* For source compatibility */ extern nodemask_t numa_all_nodes; /* Set with all cpus. */ extern struct bitmask *numa_all_cpus_ptr; /* Set with no nodes */ extern struct bitmask *numa_no_nodes_ptr; /* Source compatibility */ extern nodemask_t numa_no_nodes; /* Only run and allocate memory from a specific set of nodes. */ void numa_bind(struct bitmask *nodes); /* Set the NUMA node interleaving mask. 0 to turn off interleaving */ void numa_set_interleave_mask(struct bitmask *nodemask); /* Return the current interleaving mask */ struct bitmask *numa_get_interleave_mask(void); /* allocate a bitmask big enough for all nodes */ struct bitmask *numa_allocate_nodemask(void); static inline void numa_free_nodemask(struct bitmask *b) { numa_bitmask_free(b); } /* Some node to preferably allocate memory from for task. */ void numa_set_preferred(int node); /* Returns whether or not the platform supports MPOL_PREFERRED_MANY */ int numa_has_preferred_many(void); /* Set of nodes to preferably allocate memory from for task. */ void numa_set_preferred_many(struct bitmask *bitmask); /* Return preferred nodes */ struct bitmask *numa_preferred_many(void); /* Set local memory allocation policy for task */ void numa_set_localalloc(void); /* Only allocate memory from the nodes set in mask. 0 to turn off */ void numa_set_membind(struct bitmask *nodemask); /* Only allocate memory from the nodes set in mask. Optimize page placement with Linux kernel NUMA balancing if possible. 0 to turn off */ void numa_set_membind_balancing(struct bitmask *bmp); /* Return current membind */ struct bitmask *numa_get_membind(void); /* Return allowed memories [nodes] */ struct bitmask *numa_get_mems_allowed(void); int numa_get_interleave_node(void); /* NUMA memory allocation. These functions always round to page size and are relatively slow. */ /* Alloc memory page interleaved on nodes in mask */ void *numa_alloc_interleaved_subset(size_t size, struct bitmask *nodemask); /* Alloc memory page interleaved on all nodes. */ void *numa_alloc_interleaved(size_t size); /* Alloc memory located on node */ void *numa_alloc_onnode(size_t size, int node); /* Alloc memory on local node */ void *numa_alloc_local(size_t size); /* Allocation with current policy */ void *numa_alloc(size_t size); /* Change the size of a memory area preserving the memory policy */ void *numa_realloc(void *old_addr, size_t old_size, size_t new_size); /* Free memory allocated by the functions above */ void numa_free(void *mem, size_t size); /* Low level functions, primarily for shared memory. All memory processed by these must not be touched yet */ /* Interleave a memory area. */ void numa_interleave_memory(void *mem, size_t size, struct bitmask *mask); /* Allocate a memory area on a specific node. */ void numa_tonode_memory(void *start, size_t size, int node); /* Allocate memory on a mask of nodes. */ void numa_tonodemask_memory(void *mem, size_t size, struct bitmask *mask); /* Allocate a memory area on the current node. */ void numa_setlocal_memory(void *start, size_t size); /* Allocate memory area with current memory policy */ void numa_police_memory(void *start, size_t size); /* Run current task only on nodes in mask */ int numa_run_on_node_mask(struct bitmask *mask); /* Run current task on nodes in mask without any cpuset awareness */ int numa_run_on_node_mask_all(struct bitmask *mask); /* Run current task only on node */ int numa_run_on_node(int node); /* Return current mask of nodes the task can run on */ struct bitmask * numa_get_run_node_mask(void); /* When strict fail allocation when memory cannot be allocated in target node(s). */ void numa_set_bind_policy(int strict); /* Fail when existing memory has incompatible policy */ void numa_set_strict(int flag); /* maximum nodes (size of kernel nodemask_t) */ int numa_num_possible_nodes(void); /* maximum cpus (size of kernel cpumask_t) */ int numa_num_possible_cpus(void); /* nodes in the system */ int numa_num_configured_nodes(void); /* maximum cpus */ int numa_num_configured_cpus(void); /* maximum cpus allowed to current task */ int numa_num_task_cpus(void); int numa_num_thread_cpus(void); /* backward compatibility */ /* maximum nodes allowed to current task */ int numa_num_task_nodes(void); int numa_num_thread_nodes(void); /* backward compatibility */ /* allocate a bitmask the size of the kernel cpumask_t */ struct bitmask *numa_allocate_cpumask(void); static inline void numa_free_cpumask(struct bitmask *b) { numa_bitmask_free(b); } /* Convert node to CPU mask. -1/errno on failure, otherwise 0. */ int numa_node_to_cpus(int, struct bitmask *); void numa_node_to_cpu_update(void); /* report the node of the specified cpu. -1/errno on invalid cpu. */ int numa_node_of_cpu(int cpu); /* Report distance of node1 from node2. 0 on error.*/ int numa_distance(int node1, int node2); /* Error handling. */ /* This is an internal function in libnuma that can be overwritten by an user program. Default is to print an error to stderr and exit if numa_exit_on_error is true. */ void numa_error(char *where); /* When true exit the program when a NUMA system call (except numa_available) fails */ extern int numa_exit_on_error; /* Warning function. Can also be overwritten. Default is to print on stderr once. */ void numa_warn(int num, char *fmt, ...); /* When true exit the program on a numa_warn() call */ extern int numa_exit_on_warn; int numa_migrate_pages(int pid, struct bitmask *from, struct bitmask *to); int numa_move_pages(int pid, unsigned long count, void **pages, const int *nodes, int *status, int flags); int numa_sched_getaffinity(pid_t, struct bitmask *); int numa_sched_setaffinity(pid_t, struct bitmask *); /* Convert an ascii list of nodes to a bitmask */ struct bitmask *numa_parse_nodestring(const char *); /* Convert an ascii list of nodes to a bitmask without current nodeset * dependency */ struct bitmask *numa_parse_nodestring_all(const char *); /* Convert an ascii list of cpu to a bitmask */ struct bitmask *numa_parse_cpustring(const char *); /* Convert an ascii list of cpu to a bitmask without current taskset * dependency */ struct bitmask *numa_parse_cpustring_all(const char *); /* * The following functions are for source code compatibility * with releases prior to version 2. * Such codes should be compiled with NUMA_VERSION1_COMPATIBILITY defined. */ static inline void numa_set_interleave_mask_compat(nodemask_t *nodemask) { struct bitmask tmp; tmp.maskp = (unsigned long *)nodemask; tmp.size = sizeof(nodemask_t) * 8; numa_set_interleave_mask(&tmp); } static inline nodemask_t numa_get_interleave_mask_compat(void) { struct bitmask *tp; nodemask_t mask; tp = numa_get_interleave_mask(); copy_bitmask_to_nodemask(tp, &mask); numa_bitmask_free(tp); return mask; } static inline void numa_bind_compat(nodemask_t *mask) { struct bitmask *tp; tp = numa_allocate_nodemask(); copy_nodemask_to_bitmask(mask, tp); numa_bind(tp); numa_bitmask_free(tp); } static inline void numa_set_membind_compat(nodemask_t *mask) { struct bitmask tmp; tmp.maskp = (unsigned long *)mask; tmp.size = sizeof(nodemask_t) * 8; numa_set_membind(&tmp); } static inline nodemask_t numa_get_membind_compat(void) { struct bitmask *tp; nodemask_t mask; tp = numa_get_membind(); copy_bitmask_to_nodemask(tp, &mask); numa_bitmask_free(tp); return mask; } static inline void *numa_alloc_interleaved_subset_compat(size_t size, const nodemask_t *mask) { struct bitmask tmp; tmp.maskp = (unsigned long *)mask; tmp.size = sizeof(nodemask_t) * 8; return numa_alloc_interleaved_subset(size, &tmp); } static inline int numa_run_on_node_mask_compat(const nodemask_t *mask) { struct bitmask tmp; tmp.maskp = (unsigned long *)mask; tmp.size = sizeof(nodemask_t) * 8; return numa_run_on_node_mask(&tmp); } static inline nodemask_t numa_get_run_node_mask_compat(void) { struct bitmask *tp; nodemask_t mask; tp = numa_get_run_node_mask(); copy_bitmask_to_nodemask(tp, &mask); numa_bitmask_free(tp); return mask; } static inline void numa_interleave_memory_compat(void *mem, size_t size, const nodemask_t *mask) { struct bitmask tmp; tmp.maskp = (unsigned long *)mask; tmp.size = sizeof(nodemask_t) * 8; numa_interleave_memory(mem, size, &tmp); } static inline void numa_tonodemask_memory_compat(void *mem, size_t size, const nodemask_t *mask) { struct bitmask tmp; tmp.maskp = (unsigned long *)mask; tmp.size = sizeof(nodemask_t) * 8; numa_tonodemask_memory(mem, size, &tmp); } static inline int numa_sched_getaffinity_compat(pid_t pid, unsigned len, unsigned long *mask) { struct bitmask tmp; tmp.maskp = (unsigned long *)mask; tmp.size = len * 8; return numa_sched_getaffinity(pid, &tmp); } static inline int numa_sched_setaffinity_compat(pid_t pid, unsigned len, unsigned long *mask) { struct bitmask tmp; tmp.maskp = (unsigned long *)mask; tmp.size = len * 8; return numa_sched_setaffinity(pid, &tmp); } static inline int numa_node_to_cpus_compat(int node, unsigned long *buffer, int buffer_len) { struct bitmask tmp; tmp.maskp = (unsigned long *)buffer; tmp.size = buffer_len * 8; return numa_node_to_cpus(node, &tmp); } /* end of version 1 compatibility functions */ /* * To compile an application that uses libnuma version 1: * add -DNUMA_VERSION1_COMPATIBILITY to your Makefile's CFLAGS */ #ifdef NUMA_VERSION1_COMPATIBILITY #include <numacompat1.h> #endif #ifdef __cplusplus } #endif #endif