summaryrefslogtreecommitdiff
path: root/lockme.h
blob: 7cce97bb55330fbe1e755f11865836e25d8ddbe4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef LOCKME_H
#define LOCKME_H

#include <sys/mman.h>

#include "die.h"

static inline void xlockme(void)
{
	if (mlockall(MCL_CURRENT | MCL_FUTURE) != 0)
		panic("Cannot lock pages!\n");
}

static inline void xunlockme(void)
{
	munlockall();
}

#endif /* LOCKME_H */
2016-07-25 11:46:40 -0400 committerMarcel Holtmann <marcel@holtmann.org>2016-09-19 20:19:34 +0200 commitca1de81aa262dcf48354a7c55f2558205517d06e (patch) tree1eeb93a7d91875652f0301ee3bc165cfbac3a3f4 parent5ddedce3b7331959a6da217ed3189d020090873c (diff)
mac802154: don't warn on unsupported frames
Just because we don't support certain types of frames yet doesn't mean we have to flood the message log with warnings about "invalid" frames. Signed-off-by: Aristeu Rozanski <arozansk@redhat.com> Acked-by: Alexander Aring <aar@pengutronix.de> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat