Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _ASM_X86_IOBITMAP_H
3#define _ASM_X86_IOBITMAP_H
4
5#include <linux/refcount.h>
6#include <asm/processor.h>
7
8struct io_bitmap {
9 u64 sequence;
10 refcount_t refcnt;
11 /* The maximum number of bytes to copy so all zero bits are covered */
12 unsigned int max;
13 unsigned long bitmap[IO_BITMAP_LONGS];
14};
15
16struct task_struct;
17
18#ifdef CONFIG_X86_IOPL_IOPERM
19void io_bitmap_share(struct task_struct *tsk);
20void io_bitmap_exit(void);
21
22void tss_update_io_bitmap(void);
23#else
24static inline void io_bitmap_share(struct task_struct *tsk) { }
25static inline void io_bitmap_exit(void) { }
26static inline void tss_update_io_bitmap(void) { }
27#endif
28
29#endif