Lines Matching refs:cnode

122  * Allocate and initialize a cprotect blob for a new cnode.
123 * Called from hfs_getnewvnode: cnode is locked exclusive.
124 * Read xattr data off the cnode. Then, if conditions permit,
128 cp_entry_init(struct cnode *cp, struct mount *mp)
197 * Set up initial key/class pair on cnode. The cnode does not yet exist,
210 * At this point, we hold the directory cnode lock exclusive if it is available.
213 cp_entry_create_keys(struct cprotect **entry_ptr, struct cnode *dcp, struct hfsmount *hfsmp,
306 * a cnode directly, we take a pointer to the cprotect struct.
353 * Called at hfs_reclaim_cnode: cnode is locked exclusive.
374 * Return a pointer to underlying cnode if there is one for this vnode.
375 * Done without taking cnode lock, inspecting only vnode state.
377 struct cnode *
389 return (struct cnode*) vp->v_data;
402 struct cnode *cp;
427 * We take only the shared cnode lock up-front. If it turns out that
429 * shared cnode lock and acquire an exclusive lock.
441 panic("Content Protection: uninitialized cnode %p", cp);
475 struct cnode *cp;
512 * Take the cnode truncate lock exclusive because we want to manipulate the
577 struct cnode *cp;
597 * Take the cnode truncate lock exclusive because we want to manipulate the
671 * Takes cnode lock, and upgrades to exclusive if modifying cprotect.
673 * Note that this function does *NOT* take the cnode truncate lock. This is because
677 * Either way, the cnode lock still ultimately guards the keys. We only rely on the
686 struct cnode *cp = NULL;
722 * If this cnode is not content protected, simply return success.
808 struct cnode *cp = NULL ;
822 /* We know the vnode is in a valid state. acquire cnode and validate */
861 * normal VNOPS that read/write data to files. Specifically, we already have the cnode
868 cp_handle_relocate (struct cnode *cp, struct hfsmount *hfsmp) {
989 * Stores new xattr data on the cnode.
990 * cnode lock held exclusive (if available).
994 int cp_setxattr(struct cnode *cp, struct cprotect *entry, struct hfsmount *hfsmp, uint32_t fileid, int options)
1000 struct cnode *arg_cp = NULL;
1012 * we do not have a vnode/cnode yet. Use the specified fileid.
1094 * there may not be a cnode in existence yet (for example, after creating
1215 * Initializes a new cprotect entry with xattr data from the cnode.
1216 * cnode lock held shared
1219 cp_getxattr(struct cnode *cp, struct hfsmount *hfsmp, struct cprotect **outentry)
1450 * cnode lock held exclusive
1497 cp_check_access(struct cnode *cp, int vnop __unused)
1552 * take the truncate lock AND the cnode lock. By taking
1582 * hfs_vnop_strategy does not take the cnode lock