MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / _ipc_msg_get_file

Function _ipc_msg_get_file

components/lwp/lwp_ipc.c:406–418  ·  view source on GitHub ↗

* Get file vnode from fd. */

Source from the content-addressed store, hash-verified

404 * Get file vnode from fd.
405 */
406static 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.

Callers 1

_do_send_recv_timeoutFunction · 0.85

Calls 1

fd_getFunction · 0.50

Tested by

no test coverage detected