Lines Matching defs:node

84 	 * Pointer to the node this entry refers to.  In case this field
85 * is NULL, the node is a whiteout.
109 * the node itself in the former case or the pointer to the parent directory
140 * Internal representation of a tmpfs file system node.
145 * attributes that are actually allowed by the node's type.
162 * when the node is removed from list and unlocked.
168 * The node's type. Any of 'VBLK', 'VCHR', 'VDIR', 'VFIFO',
180 * operations to do modifications to the node in a delayed
189 * The node size. It does not necessarily match the real amount
194 /* Generic node attributes. */
213 * point to the node it references. At the same time, the node's
215 * it. Further attempts to allocate a vnode for this same node will
219 * May be NULL when the node is unused (that is, no vnode has been
231 * Identify if current node has vnode assiocate with
236 /* Transient refcounter on this node. */
239 /* misc data field for different tn_type node */
249 * this property identifies the root node.
307 #define TMPFS_NODE_LOCK(node) mtx_lock(&(node)->tn_interlock)
308 #define TMPFS_NODE_UNLOCK(node) mtx_unlock(&(node)->tn_interlock)
309 #define TMPFS_NODE_MTX(node) (&(node)->tn_interlock)
310 #define TMPFS_NODE_ASSERT_LOCKED(node) mtx_assert(TMPFS_NODE_MTX(node), \
314 #define TMPFS_ASSERT_LOCKED(node) do { \
315 MPASS((node) != NULL); \
316 MPASS((node)->tn_vnode != NULL); \
317 ASSERT_VOP_LOCKED((node)->tn_vnode, "tmpfs assert"); \
320 #define TMPFS_ASSERT_LOCKED(node) (void)0
350 * Pointer to the node representing the root directory of this
383 /* All node lock to protect the node list and tmp_pages_used. */
400 * This structure maps a file identifier to a tmpfs node. Used by the
420 void tmpfs_ref_node(struct tmpfs_node *node);
421 void tmpfs_ref_node_locked(struct tmpfs_node *node);
442 struct tmpfs_dirent * tmpfs_dir_lookup(struct tmpfs_node *node,
460 void tmpfs_set_status(struct tmpfs_mount *tm, struct tmpfs_node *node,
484 * Ensures that the node pointed by 'node' is a directory and that its
487 #define TMPFS_VALIDATE_DIR(node) do { \
488 MPASS((node)->tn_type == VDIR); \
489 MPASS((node)->tn_size % sizeof(struct tmpfs_dirent) == 0); \
520 struct tmpfs_node *node;
523 node = (struct tmpfs_node *)vp->v_data;
524 return (node);
530 struct tmpfs_node *node;
532 node = VP_TO_TMPFS_NODE(vp);
533 TMPFS_VALIDATE_DIR(node);
534 return (node);