Home
last modified time | relevance | path

Searched refs:get_unused_fd_flags (Results 1 – 25 of 60) sorted by relevance

123

/linux/include/linux/
H A Dfile.h92 extern int get_unused_fd_flags(unsigned flags);
96 get_unused_fd_flags(flags), unsigned flags)
/linux/rust/kernel/fs/
H A Dfile.rs389 /// unchanged since the call to `get_unused_fd_flags`. By adding this marker to this type, we
398 pub fn get_unused_fd_flags(flags: u32) -> Result<Self> { in get_unused_fd_flags() method
400 let fd: i32 = unsafe { bindings::get_unused_fd_flags(flags) }; in get_unused_fd_flags()
422 // SAFETY: `self.fd` was previously returned by `get_unused_fd_flags`. We have not yet used in fd_install()
444 // `get_unused_fd_flags`. We have not yet used the fd, so it is still valid, and `current` in drop()
/linux/arch/powerpc/platforms/pseries/
H A Dpapr-rtas-common.c216 fd = get_unused_fd_flags(O_RDONLY | O_CLOEXEC); in papr_rtas_setup_file_interface()
H A Dpapr-platform-dump.c337 fd = get_unused_fd_flags(O_RDONLY | O_CLOEXEC); in papr_platform_dump_create_handle()
/linux/fs/
H A Dfile.c620 int get_unused_fd_flags(unsigned flags) in get_unused_fd_flags() function
624 EXPORT_SYMBOL(get_unused_fd_flags);
1279 * fd = get_unused_fd_flags(); // fd slot reserved, ->fd[fd] == NULL in do_dup2()
1364 new_fd = get_unused_fd_flags(o_flags); in receive_fd()
1460 ret = get_unused_fd_flags(0); in SYSCALL_DEFINE1()
H A Danon_inodes.c286 error = get_unused_fd_flags(flags); in __anon_inode_getfd()
H A Dinit.c265 fd = get_unused_fd_flags(0); in init_dup()
H A Deventfd.c405 fd = get_unused_fd_flags(flags); in do_eventfd()
H A Dsignalfd.c274 ufd = get_unused_fd_flags(flags & O_CLOEXEC); in do_signalfd4()
H A Dpipe.c992 error = get_unused_fd_flags(flags); in __do_pipe_flags()
997 error = get_unused_fd_flags(flags); in __do_pipe_flags()
H A Dtimerfd.c435 ufd = get_unused_fd_flags(flags & TFD_SHARED_FCNTL_FLAGS); in SYSCALL_DEFINE2()
/linux/mm/
H A Dsecretmem.c241 fd = get_unused_fd_flags(flags & O_CLOEXEC); in SYSCALL_DEFINE1()
H A Dmemfd.c485 fd = get_unused_fd_flags((flags & MFD_CLOEXEC) ? O_CLOEXEC : 0); in SYSCALL_DEFINE2()
/linux/kernel/bpf/
H A Dtoken.c195 fd = get_unused_fd_flags(O_CLOEXEC); in bpf_token_create()
/linux/drivers/dma-buf/
H A Dsync_file.c216 int fd = get_unused_fd_flags(O_CLOEXEC); in sync_file_ioctl_merge()
H A Dsw_sync.c346 int fd = get_unused_fd_flags(O_CLOEXEC); in sw_sync_ioctl_create_fence()
/linux/Documentation/driver-api/
H A Dsync_file.rst57 fd = get_unused_fd_flags(O_CLOEXEC);
/linux/arch/powerpc/platforms/cell/spufs/
H A Dinode.c273 ret = get_unused_fd_flags(0); in spufs_context_open()
514 ret = get_unused_fd_flags(0); in spufs_gang_open()
/linux/io_uring/
H A Dmock_file.c249 ret = fd = get_unused_fd_flags(O_RDWR | O_CLOEXEC); in io_create_mock_file()
/linux/drivers/media/mc/
H A Dmc-request.c300 fd = get_unused_fd_flags(O_CLOEXEC); in media_request_alloc()
/linux/drivers/gpu/drm/virtio/
H A Dvirtgpu_submit.c421 err = get_unused_fd_flags(O_CLOEXEC); in virtio_gpu_init_submit()
/linux/drivers/char/tpm/
H A Dtpm_vtpm_proxy.c551 fd = get_unused_fd_flags(O_RDWR); in vtpm_proxy_create_device()
/linux/fs/bcachefs/
H A Dthread_with_file.c46 ret = get_unused_fd_flags(fd_flags); in bch2_run_thread_with_file()
/linux/drivers/gpu/drm/
H A Ddrm_syncobj.c678 fd = get_unused_fd_flags(O_CLOEXEC); in drm_syncobj_get_fd()
781 int fd = get_unused_fd_flags(O_CLOEXEC); in drm_syncobj_export_sync_file()
/linux/fs/autofs/
H A Ddev-ioctl.c236 fd = get_unused_fd_flags(O_CLOEXEC); in autofs_dev_ioctl_open_mountpoint()

123