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

Function fd_init

components/dfs/dfs_v1/src/dfs.c:704–714  ·  view source on GitHub ↗

* @brief initialize a dfs file object. * */

Source from the content-addressed store, hash-verified

702 *
703 */
704void fd_init(struct dfs_file *fd)
705{
706 if (fd)
707 {
708 fd->magic = DFS_FD_MAGIC;
709 fd->ref_count = 1;
710 fd->pos = 0;
711 fd->vnode = NULL;
712 fd->data = NULL;
713 }
714}
715
716/**
717 * this function will return a sub-path name under directory.

Callers 4

lsFunction · 0.85
catFunction · 0.85
copyfileFunction · 0.85
dfs_mountFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected