• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: MIT */
2 #ifndef LIBURING_INT_FLAGS
3 #define LIBURING_INT_FLAGS
4 
5 #define INT_FLAGS_MASK		(IORING_ENTER_REGISTERED_RING)
6 
7 enum {
8 	INT_FLAG_REG_RING	= IORING_ENTER_REGISTERED_RING,
9 	INT_FLAG_REG_REG_RING	= 1,
10 	INT_FLAG_APP_MEM	= 2,
11 };
12 
ring_enter_flags(struct io_uring * ring)13 static inline int ring_enter_flags(struct io_uring *ring)
14 {
15 	return ring->int_flags & INT_FLAGS_MASK;
16 }
17 
18 #endif
19