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 */
option>
authorKeith Busch <keith.busch@intel.com>2017-01-18 17:21:15 -0500
committerJens Axboe <axboe@fb.com>2017-01-18 15:14:15 -0700
commit88a7503376f4f3bf303c809d1a389739e1205614 (patch)
tree5004e4c61099074e7832ec38e88d258275c152f2 /include/uapi/drm
parentfa19a769f82fb9a5ca000b83cacd13fcaeda51ac (diff)
blk-mq: Remove unused variable
Signed-off-by: Keith Busch <keith.busch@intel.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include/uapi/drm')