* Get file vnode from fd. */
| 404 | * Get file vnode from fd. |
| 405 | */ |
| 406 | static void *_ipc_msg_get_file(int fd) |
| 407 | { |
| 408 | struct dfs_file *d; |
| 409 | |
| 410 | d = fd_get(fd); |
| 411 | if (d == RT_NULL) |
| 412 | return RT_NULL; |
| 413 | |
| 414 | if (!d->vnode) |
| 415 | return RT_NULL; |
| 416 | |
| 417 | return (void *)d; |
| 418 | } |
| 419 | |
| 420 | /** |
| 421 | * Get fd from file vnode. |
no test coverage detected