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 */
th>authorDavid S. Miller <davem@davemloft.net>2017-02-09 17:09:20 -0500 committerDavid S. Miller <davem@davemloft.net>2017-02-09 17:09:20 -0500 commit165f1cc0b5858b17cbb31312e861495f4500d9f0 (patch) treefd3c02c461fdeb60eb1ae3ab7470fcb92ec3399e parent15c2e102412d95af4fe88e5b28b3eba124545bbf (diff)parent038b9404d4e2db4fbc03d5d2203abafc6e188528 (diff)
Merge branch 'qcom-emac-more-ethtool'
Timur Tabi says: ==================== net: qcom/emac: add the last ethtool functions These two patches implement the remaining two ethtool functions that are of interest to the Qualcomm EMAC driver. These are the last patches that will be submitted for the 4.11 merge window. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat