| 906 | |
| 907 | #ifdef RT_USING_SMART |
| 908 | struct dfs_fdtable *dfs_fdtable_get_pid(int pid) |
| 909 | { |
| 910 | struct rt_lwp *lwp = RT_NULL; |
| 911 | struct dfs_fdtable *fdt = RT_NULL; |
| 912 | |
| 913 | lwp_pid_lock_take(); |
| 914 | lwp = lwp_from_pid_locked(pid); |
| 915 | if (lwp) |
| 916 | { |
| 917 | fdt = &lwp->fdt; |
| 918 | } |
| 919 | lwp_pid_lock_release(); |
| 920 | |
| 921 | return fdt; |
| 922 | } |
| 923 | #endif |
| 924 | |
| 925 | struct dfs_fdtable *dfs_fdtable_get_global(void) |
no test coverage detected