summaryrefslogtreecommitdiffstats
path: root/fs/notify/fanotify/fanotify.h
blob: 50765eb30fe4b64fc483e658429804b33fc9a4cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <linux/fanotify.h>
#include <linux/fsnotify_backend.h>
#include <linux/net.h>
#include <linux/kernel.h>
#include <linux/types.h>

static inline bool fanotify_mask_valid(__u32 mask)
{
	if (mask & ~((__u32)FAN_ALL_INCOMING_EVENTS))
		return false;
	return true;
}