repo.or.cz
/
netsniff-ng.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
flowtop: Redraw screen in 1s if no key was pressed
[netsniff-ng.git]
/
lockme.h
blob
7cce97bb55330fbe1e755f11865836e25d8ddbe4
1
#ifndef LOCKME_H
2
#define LOCKME_H
3
4
#include <sys/mman.h>
5
6
#include
"die.h"
7
8
static
inline
void
xlockme
(
void
)
9
{
10
if
(
mlockall
(
MCL_CURRENT
|
MCL_FUTURE
) !=
0
)
11
panic
(
"Cannot lock pages!
\n
"
);
12
}
13
14
static
inline
void
xunlockme
(
void
)
15
{
16
munlockall
();
17
}
18
19
#endif
/* LOCKME_H */