/xnu-2422.115.4/bsd/hfs/ |
H A D | hfs_cnode.h | 55 * Reading or writing any of these fields requires holding cnode lock. 58 struct cnode *ff_cp; /* cnode associated with this fork */ 128 * The cnode is used to represent each active (or recently active) 133 struct cnode { struct 134 lck_rw_t c_rwlock; /* cnode's lock */ 135 void * c_lockowner; /* cnode's lock owner (exclusive case only) */ 138 LIST_ENTRY(cnode) c_hash; /* cnode's hash chain */ 139 u_int32_t c_flag; /* cnode' [all...] |
H A D | hfs_quota.h | 78 struct cnode; 87 int hfs_chkdq(struct cnode *, int64_t, kauth_cred_t, int); 88 int hfs_chkdqchg(struct cnode *, int64_t, kauth_cred_t, int); 89 int hfs_chkiq(struct cnode *, int32_t, kauth_cred_t, int); 90 int hfs_chkiqchg(struct cnode *, int32_t, kauth_cred_t, int); 91 int hfs_getinoquota(struct cnode *); 105 void hfs_chkdquot(struct cnode *);
|
H A D | hfs_chash.c | 90 * Initialize cnode hash table. 141 * Use the device, inum pair to find the incore cnode. 148 struct cnode *cp; 155 * If a cnode is in the process of being cleaned out or being 164 /* Wait if cnode is being created or reclaimed. */ 194 * we need to check with the cnode lock held because 196 * lock on the cnode which would allow the node to be 217 * Use the device, fileid pair to snoop an incore cnode. 219 * A cnode can exists in chash even after it has been 221 * ENOENT if C_NOEXIST is set in the cnode' [all...] |
H A D | hfs_cnode.c | 59 static void hfs_reclaim_cnode(struct cnode *); 61 static int hfs_isordered(struct cnode *, struct cnode *); 66 __inline__ int hfs_checkdeleted (struct cnode *cp) { 71 * Function used by a special fcntl() that decorates a cnode/vnode that 74 * the argument 'val' indicates whether or not to set the bit in the cnode flags 79 struct cnode *cp = NULL; 87 /* lock the cnode */ 107 * Function used by a special fcntl() that check to see if a cnode/vnode 116 struct cnode *c [all...] |
H A D | hfs.h | 163 struct cnode * hfs_extents_cp; 164 struct cnode * hfs_catalog_cp; 165 struct cnode * hfs_allocation_cp; 166 struct cnode * hfs_attribute_cp; 167 struct cnode * hfs_startup_cp; 319 /* Per mount cnode hash variables: */ 320 lck_mtx_t hfs_chash_mutex; /* protects access to cnode hash table */ 321 u_long hfs_cnodehash; /* size of cnode hash table - 1 */ 322 LIST_HEAD(cnodehashhead, cnode) *hfs_cnodehashtbl; /* base of cnode has [all...] |
H A D | hfs_cprotect.c | 58 static int cp_restore_keys(struct cprotect *, struct hfsmount *hfsmp, struct cnode *); 63 static int cp_new(int newclass, struct hfsmount *hfsmp, struct cnode *cp, mode_t cmode, struct cprotect **output_entry); 64 static int cp_rewrap(struct cnode *cp, struct hfsmount *hfsmp, int newclass); 65 static int cp_unwrap(struct hfsmount *, struct cprotect *, struct cnode *); 67 static void cp_init_access(cp_cred_t access, struct cnode *cp); 121 * Allocate and initialize a cprotect blob for a new cnode. 122 * 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) 135 * The cnode shoul [all...] |
H A D | hfs_vfsutils.c | 1419 * 1. (a) Your UID matches the cnode's UID. 1605 struct cnode cnode; local 1610 bzero(&cnode, sizeof(cnode)); 1633 /* Build a fake cnode */ 1634 cat_convertattr(hfsmp, (CatalogRecord *)&filerec, &cnode.c_attr, 1636 cnode.c_desc.cd_parentcnid = hfsmp->hfs_private_desc[FILE_HARDLINKS].cd_cnid; 1637 cnode.c_desc.cd_nameptr = (const u_int8_t *)filename; 1638 cnode [all...] |
H A D | hfs_vnops.c | 95 /* Used here and in cnode teardown -- for symlinks */ 99 static int hfs_move_fork (struct filefork *srcfork, struct cnode *src, 100 struct filefork *dstfork, struct cnode *dst); 102 decmpfs_cnode* hfs_lazy_init_decmpfs_cnode (struct cnode *cp); 146 * Is the given cnode either the .journal or .journal_info_block file on 155 hfs_is_journal_file(struct hfsmount *hfsmp, struct cnode *cp) 219 struct cnode *cp; 245 * hfs_ref_data_vp(): returns the data fork vnode for a given cnode. 254 hfs_ref_data_vp(struct cnode *cp, struct vnode **data_vp, int skiplock) 261 /* maybe we should take the hfs cnode loc [all...] |
H A D | hfs_link.c | 65 int hfs_makelink(struct hfsmount *hfsmp, struct vnode *src_vp, struct cnode *cp, 66 struct cnode *dcp, struct componentname *cnp); 126 * Make a link to the cnode cp in the directory dp 134 hfs_makelink(struct hfsmount *hfsmp, struct vnode *src_vp, struct cnode *cp, 135 struct cnode *dcp, struct componentname *cnp) 236 /* Restore the cnode's cnid. */ 285 /* Restore the cnode's cnid. */ 312 * - mark the cnode as a hard link 339 * doing much checking. It's safe to call this because we are protected by the cnode lock, which 347 * require the cnode loc [all...] |
H A D | hfs_lookup.c | 92 * Convert a component of a pathname into a pointer to a locked cnode. 109 * looking up the same item, so it has to be locked until the cnode is totally finished 132 * cnode and return info to allow rewrite 141 * We create a cnode for the file, but we do NOT open the file here. 156 struct cnode *dcp; /* cnode for directory being searched */ 402 * against what is actually in the catalog after the cnode is created. If there were 469 struct cnode *cp; 470 struct cnode *dcp; 548 * Since the name in the cnode does [all...] |
H A D | hfs_quota.c | 95 * Set up the quotas for a cnode. 104 register struct cnode *cp; 149 register struct cnode *cp; 222 struct cnode *cp; 295 register struct cnode *cp; 381 * If user would exceed their hard limit, disallow cnode allocation. 393 * If user is over their soft limit for too long, disallow cnode 427 struct cnode *cp; 440 * If user would exceed their hard limit, disallow cnode allocation. 446 printf("\nhfs: write failed, %s cnode limi [all...] |
H A D | hfs_readwrite.c | 94 extern decmpfs_cnode* hfs_lazy_init_decmpfs_cnode (struct cnode *cp); 119 struct cnode *cp; 147 if (hfs_hides_rsrc(ap->a_context, VTOC(vp), 1)) { /* 1 == don't take the cnode lock */ 152 int compressed = hfs_file_is_compressed(VTOC(vp), 1); /* 1 == don't take the cnode lock */ 235 /* When ff_bytesread exceeds 32-bits, update it behind the cnode lock. */ 277 struct cnode *cp; 301 if ( hfs_file_is_compressed(VTOC(vp), 1) ) { /* 1 == don't take the cnode lock */ 425 * NOTE: Testing for #3 (delayed zero fill) needs to be done while the cnode 455 * Now that we have the cnode lock, see if there are delayed zero fill ranges 464 * cnode loc [all...] |
H A D | hfs_xattr.c | 81 static int hfs_zero_hidden_fields (struct cnode *cp, u_int8_t *finderinfo); 115 struct cnode *cp; 158 struct cnode *cp; 200 struct cnode *scp; 218 /* Take truncate lock before taking cnode lock. */ 234 /* Zero out the date added field for the specified cnode */ 235 static int hfs_zero_hidden_fields (struct cnode *cp, u_int8_t *finderinfo) 278 struct cnode *cp; 287 int decmpfs_hide = hfs_hides_xattr(ap->a_context, VTOC(vp), ap->a_name, 1); /* 1 == don't take the cnode lock */ 428 * where we need to get EAs in contexts where we are already holding the cnode loc [all...] |
H A D | hfs_attrlist.c | 99 struct cnode *dcp; 143 int compressed = hfs_file_is_compressed(VTOC(dvp), 0); /* 0 == take the cnode lock */ 188 /* Get a detached directory hint (cnode must be locked exclusive) */ 242 * - acquire a child cnode lock 251 struct cnode *cp = NULL; 276 /* Get in-memory cnode data (if any). */ 281 /* Only use cnode's decriptor for non-hardlinks */ 293 /* All done with cnode. */ 419 * Pack cnode attributes into an attribute block. 487 /* A cnode' [all...] |
H A D | hfs_vfsops.c | 569 struct cnode *cp; 779 struct cnode *cp; 797 * Re-read cnode data for all active vnodes (non-metadata files). 813 /* update cnode's catalog descriptor */ 831 * re-read cnode data for all active vnodes. 2469 struct cnode *cp; 2505 struct cnode *cp; 2621 * - check that the cnode id is valid 2622 * - call hfs_vget() to get the locked cnode 2623 * - check for an unallocated cnode (i_mod [all...] |
H A D | hfs_hotfiles.c | 763 * Note: the cnode is locked on entry. 858 * Note: the cnode is locked on entry. 1805 struct cnode *cp = NULL;
|
/xnu-2422.115.4/bsd/sys/ |
H A D | cprotect.h | 86 typedef struct cnode * cnode_ptr_t; 125 * for the given file. This is contained within the cnode 244 void cp_replace_entry (struct cnode *cp, struct cprotect *newentry); 250 int cp_setxattr(struct cnode *cp, struct cprotect *entry, struct hfsmount *hfsmp, uint32_t fileid, int options); 251 int cp_generate_keys (struct hfsmount *hfsmp, struct cnode *cp, int targetclass, struct cprotect **newentry); 252 int cp_setup_newentry (struct hfsmount *hfsmp, struct cnode *dcp, int32_t suppliedclass,
|
/xnu-2422.115.4/bsd/kern/ |
H A D | kern_malloc.c | 427 { SOS(cnode), KMZ_CREATEZONE, TRUE }, /* 76 M_HFSNODE */
|
H A D | decmpfs.c | 285 #pragma mark --- cnode routines --- 452 /* this file's xattr didn't have any extra data when we fetched it, so we can synthesize a header from the data in the cnode */ 628 to speed up this operation, we cache the result in the cnode, and do as little as possible 629 in the case where the cnode already has a valid cached state 646 since named streams of the same file share the same cnode, 647 we don't want to get/set the state in the cnode, just return 0 652 /* examine the cached a state in this cnode */ 693 /* lock our cnode data so that another caller doesn't change the state under us */ 726 cache the uncompressed size away in the cnode 749 /* update the decompression flags in the decmpfs cnode */ [all...] |
/xnu-2422.115.4/tools/lldbmacros/ |
H A D | memory.py | 1600 cnode = Cast(vnode.v_data, 'cnode *') 1601 name = "hfs: %s" % str( Cast(cnode.c_desc.cd_nameptr, 'char *'))
|