Lines Matching defs:flags
42 unsigned int flags;
48 unsigned long flags;
61 spin_lock_irqsave(&ctx->wqh.lock, flags);
69 spin_unlock_irqrestore(&ctx->wqh.lock, flags);
192 *cnt = ((ctx->flags & EFD_SEMAPHORE) && ctx->count) ? 1 : ctx->count;
213 unsigned long flags;
215 spin_lock_irqsave(&ctx->wqh.lock, flags);
220 spin_unlock_irqrestore(&ctx->wqh.lock, flags);
305 !!(ctx->flags & EFD_SEMAPHORE));
389 static int do_eventfd(unsigned int count, int flags)
399 if (flags & ~EFD_FLAGS_SET)
409 ctx->flags = flags;
412 flags &= EFD_SHARED_FCNTL_FLAGS;
413 flags |= O_RDWR;
414 fd = get_unused_fd_flags(flags);
418 file = anon_inode_getfile("[eventfd]", &eventfd_fops, ctx, flags);
433 SYSCALL_DEFINE2(eventfd2, unsigned int, count, int, flags)
435 return do_eventfd(count, flags);