Home
last modified time | relevance | path

Searched refs:sysFd (Results 1 – 8 of 8) sorted by relevance

/kernel/liteos_a/fs/vfs/operation/
Dvfs_procfd.c105 void AssociateSystemFd(int procFd, int sysFd) in AssociateSystemFd() argument
113 if (sysFd < 0) { in AssociateSystemFd()
118 fdt->ft_fds[procFd].sysFd = sysFd; in AssociateSystemFd()
142 if (fdt->ft_fds[procFd].sysFd < 0) { in GetAssociatedSystemFd()
146 int sysFd = fdt->ft_fds[procFd].sysFd; in GetAssociatedSystemFd() local
149 return sysFd; in GetAssociatedSystemFd()
166 if (fdt->ft_fds[procFd].sysFd >= 0) { in AllocSpecifiedProcessFd()
168 fdt->ft_fds[procFd].sysFd = -1; in AllocSpecifiedProcessFd()
197 fdt->ft_fds[procFd].sysFd = -1; in FreeProcessFd()
210 if (fdt->ft_fds[procFd].sysFd < 0) { in DisassociateProcessFd()
[all …]
Dvfs_cloexec.c44 int sysFd; in CloseOnExec() local
52 sysFd = DisassociateProcessFd(i); in CloseOnExec()
53 if (sysFd >= 0) { in CloseOnExec()
54 close(sysFd); in CloseOnExec()
/kernel/liteos_a/fs/proc/os_adapt/
Dfd_proc.c50 int sysFd; in FillFdInfo() local
63 sysFd = fdt->ft_fds[fd].sysFd; in FillFdInfo()
64 if (sysFd < CONFIG_NFILE_DESCRIPTORS) { in FillFdInfo()
65 filp = &fileList->fl_files[sysFd]; in FillFdInfo()
67 } else if (sysFd < (CONFIG_NFILE_DESCRIPTORS + CONFIG_NSOCKET_DESCRIPTORS)) { in FillFdInfo()
69 } else if (sysFd < (FD_SETSIZE + CONFIG_NTIME_DESCRIPTORS)) { in FillFdInfo()
71 } else if (sysFd < (MQUEUE_FD_OFFSET + CONFIG_NQUEUE_DESCRIPTORS)) { in FillFdInfo()
73 } else if (sysFd < (EPOLL_FD_OFFSET + CONFIG_EPOLL_DESCRIPTORS)) { in FillFdInfo()
80 …(void)LosBufPrintf(seqBuf, "%u\t%d\t%6d <%d>\t%s\n", pid, fd, sysFd, filp ? filp->f_refcount : 1, … in FillFdInfo()
/kernel/liteos_a/compat/posix/src/
Dmqueue.c292 INT32 sysFd = (INT32)personal; in MqGetPrivDataBuff() local
293 INT32 id = sysFd - MQUEUE_FD_OFFSET; in MqGetPrivDataBuff()
330 INT32 sysFd = (INT32)personal; in MqFreeSysFd() local
332 if (fdset && FD_ISSET(sysFd, fdset)) { in MqFreeSysFd()
333 FD_CLR(sysFd, fdset); in MqFreeSysFd()
334 g_mqPrivBuf[sysFd - MQUEUE_FD_OFFSET] = NULL; in MqFreeSysFd()
339 void MqueueRefer(int sysFd) in MqueueRefer() argument
346 privateMqPersonal = MqGetPrivDataBuff((mqd_t)sysFd); in MqueueRefer()
493 int sysFd; in mq_open() local
537 sysFd = MqAllocSysFd(MAX_MQ_FD, privateMqPersonal); in mq_open()
[all …]
/kernel/liteos_a/fs/include/fs/
Dfd_table.h42 intptr_t sysFd; /* system fd associate with the tg_filelist index */ member
/kernel/liteos_a/syscall/
Dfs_syscall.c524 int sysFd; in SysFchdir() local
527 sysFd = GetAssociatedSystemFd(fd); in SysFchdir()
528 if (sysFd < 0) { in SysFchdir()
532 ret = fs_getfilep(sysFd, &file); in SysFchdir()
2276 int sysFd; in SysFchmod() local
2283 sysFd = GetAssociatedSystemFd(fd); in SysFchmod()
2284 if (sysFd < 0) { in SysFchmod()
2288 ret = fs_getfilep(sysFd, &file); in SysFchmod()
2337 int sysFd; in SysFchown() local
2342 sysFd = GetAssociatedSystemFd(fd); in SysFchown()
[all …]
Dipc_syscall.c46 int sysFd = GetAssociatedSystemFd((INTPTR)(id)); \
47 (id) = (mqd_t)sysFd; \
/kernel/liteos_a/compat/posix/include/
Dmqueue.h425 extern void MqueueRefer(int sysFd);