Home
last modified time | relevance | path

Searched refs:fdset (Results 1 - 4 of 4) sorted by relevance

/kernel/liteos_a/fs/vfs/epoll/
H A Dfs_epoll.c71 fd_set *fdset = &g_epollFdSet; in EpollAllocSysFd() local
74 if (fdset && !(FD_ISSET(i, fdset))) { in EpollAllocSysFd()
75 FD_SET(i, fdset); in EpollAllocSysFd()
102 fd_set *fdset = &g_epollFdSet; in EpollFreeSysFd() local
103 if (fdset && FD_ISSET(efd, fdset)) { in EpollFreeSysFd()
104 FD_CLR(efd, fdset); in EpollFreeSysFd()
/kernel/linux/linux-5.10/fs/
H A Dselect.c389 int get_fd_set(unsigned long nr, void __user *ufdset, unsigned long *fdset) in get_fd_set() argument
393 return copy_from_user(fdset, ufdset, nr) ? -EFAULT : 0; in get_fd_set()
395 memset(fdset, 0, nr); in get_fd_set()
400 set_fd_set(unsigned long nr, void __user *ufdset, unsigned long *fdset) in set_fd_set() argument
403 return __copy_to_user(ufdset, fdset, FDS_BYTES(nr)); in set_fd_set()
408 void zero_fd_set(unsigned long nr, unsigned long *fdset) in zero_fd_set() argument
410 memset(fdset, 0, FDS_BYTES(nr)); in zero_fd_set()
649 * since we used fdset we need to allocate memory in units of in core_sys_select()
1160 unsigned long *fdset) in compat_get_fd_set()
1163 return compat_get_bitmap(fdset, ufdse in compat_get_fd_set()
1159 compat_get_fd_set(unsigned long nr, compat_ulong_t __user *ufdset, unsigned long *fdset) compat_get_fd_set() argument
1171 compat_set_fd_set(unsigned long nr, compat_ulong_t __user *ufdset, unsigned long *fdset) compat_set_fd_set() argument
[all...]
/kernel/linux/linux-6.6/fs/
H A Dselect.c390 int get_fd_set(unsigned long nr, void __user *ufdset, unsigned long *fdset) in get_fd_set() argument
394 return copy_from_user(fdset, ufdset, nr) ? -EFAULT : 0; in get_fd_set()
396 memset(fdset, 0, nr); in get_fd_set()
401 set_fd_set(unsigned long nr, void __user *ufdset, unsigned long *fdset) in set_fd_set() argument
404 return __copy_to_user(ufdset, fdset, FDS_BYTES(nr)); in set_fd_set()
409 void zero_fd_set(unsigned long nr, unsigned long *fdset) in zero_fd_set() argument
411 memset(fdset, 0, FDS_BYTES(nr)); in zero_fd_set()
650 * since we used fdset we need to allocate memory in units of in core_sys_select()
1161 unsigned long *fdset) in compat_get_fd_set()
1164 return compat_get_bitmap(fdset, ufdse in compat_get_fd_set()
1160 compat_get_fd_set(unsigned long nr, compat_ulong_t __user *ufdset, unsigned long *fdset) compat_get_fd_set() argument
1172 compat_set_fd_set(unsigned long nr, compat_ulong_t __user *ufdset, unsigned long *fdset) compat_set_fd_set() argument
[all...]
/kernel/liteos_a/compat/posix/src/
H A Dmqueue.c329 * @param fdset: Mqueue sysFd bit map.
336 fd_set *fdset = &IPC_QUEUE_FD_SET; in MqAllocSysFd() local
339 if (fdset && !(FD_ISSET(i + MQUEUE_FD_OFFSET, fdset))) { in MqAllocSysFd()
340 FD_SET(i + MQUEUE_FD_OFFSET, fdset); in MqAllocSysFd()
353 fd_set *fdset = &IPC_QUEUE_FD_SET; in MqFreeSysFd() local
354 if (fdset && FD_ISSET(sysFd, fdset)) { in MqFreeSysFd()
355 FD_CLR(sysFd, fdset); in MqFreeSysFd()

Completed in 6 milliseconds