/darwin-on-arm/xnu/bsd/hfs/ |
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_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_chash.c | 90 * Initialize cnode hash table. 145 * Use the device, inum pair to find the incore cnode. 152 struct cnode *cp; 159 * If a cnode is in the process of being cleaned out or being 168 /* Wait if cnode is being created or reclaimed. */ 198 * we need to check with the cnode lock held because 200 * lock on the cnode which would allow the node to be 221 * Use the device, fileid pair to snoop an incore cnode. 223 * A cnode can exists in chash even after it has been 225 * 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 *); 65 __inline__ int hfs_checkdeleted (struct cnode *cp) { 70 * Function used by a special fcntl() that decorates a cnode/vnode that 73 * the argument 'val' indicates whether or not to set the bit in the cnode flags 78 struct cnode *cp = NULL; 86 /* lock the cnode */ 106 * Function used by a special fcntl() that check to see if a cnode/vnode 115 struct cnode *c [all...] |
H A D | hfs.h | 166 struct cnode * hfs_extents_cp; 167 struct cnode * hfs_catalog_cp; 168 struct cnode * hfs_allocation_cp; 169 struct cnode * hfs_attribute_cp; 170 struct cnode * hfs_startup_cp; 335 /* Per mount cnode hash variables: */ 336 lck_mtx_t hfs_chash_mutex; /* protects access to cnode hash table */ 337 u_long hfs_cnodehash; /* size of cnode hash table - 1 */ 338 LIST_HEAD(cnodehashhead, cnode) *hfs_cnodehashtbl; /* base of cnode has [all...] |
H A D | hfs_cprotect.c | 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 i [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_vnops.c | 93 /* Used here and in cnode teardown -- for symlinks */ 97 static int hfs_move_fork (struct filefork *srcfork, struct cnode *src, 98 struct filefork *dstfork, struct cnode *dst); 143 * Is the given cnode either the .journal or .journal_info_block file on 152 hfs_is_journal_file(struct hfsmount *hfsmp, struct cnode *cp) 216 struct cnode *cp; 242 * hfs_ref_data_vp(): returns the data fork vnode for a given cnode. 251 hfs_ref_data_vp(struct cnode *cp, struct vnode **data_vp, int skiplock) 258 /* maybe we should take the hfs cnode lock here, and if so, use the skiplock parameter to tell us not to */ 272 /* no data fork vnode in the cnode, s [all...] |
H A D | hfs_vfsutils.c | 1132 * If there's no bitmap cnode, ignore the bitmap lock. 1265 * 1. (a) Your UID matches the cnode's UID. 1451 struct cnode cnode; local 1456 bzero(&cnode, sizeof(cnode)); 1479 /* Build a fake cnode */ 1480 cat_convertattr(hfsmp, (CatalogRecord *)&filerec, &cnode.c_attr, 1482 cnode.c_desc.cd_parentcnid = hfsmp->hfs_private_desc[FILE_HARDLINKS].cd_cnid; 1483 cnode [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 */ 378 * against what is actually in the catalog after the cnode is created. If there were 445 struct cnode *cp; 446 struct cnode *dcp; 523 * the cnode w [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_xattr.c | 83 static int hfs_zero_dateadded (struct cnode *cp, u_int8_t *finderinfo); 117 struct cnode *cp; 160 struct cnode *cp; 202 struct cnode *scp; 220 /* Take truncate lock before taking cnode lock. */ 236 /* Zero out the date added field for the specified cnode */ 237 static int hfs_zero_dateadded (struct cnode *cp, u_int8_t *finderinfo) { 277 struct cnode *cp; 286 int decmpfs_hide = hfs_hides_xattr(ap->a_context, VTOC(vp), ap->a_name, 1); /* 1 == don't take the cnode lock */ 427 * where we need to get EAs in contexts where we are already holding the cnode loc [all...] |
H A D | hfs_readwrite.c | 115 struct cnode *cp; 141 if (hfs_hides_rsrc(ap->a_context, VTOC(vp), 1)) { /* 1 == don't take the cnode lock */ 146 int compressed = hfs_file_is_compressed(VTOC(vp), 1); /* 1 == don't take the cnode lock */ 231 /* When ff_bytesread exceeds 32-bits, update it behind the cnode lock. */ 273 struct cnode *cp; 297 if ( hfs_file_is_compressed(VTOC(vp), 1) ) { /* 1 == don't take the cnode lock */ 421 * NOTE: Testing for #3 (delayed zero fill) needs to be done while the cnode 447 * Now that we have the cnode lock, see if there are delayed zero fill ranges 456 * cnode lock and try again. Since took_truncate_lock is set, we will 1051 struct cnode *skip_c [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 | 598 struct cnode *cp; 799 struct cnode *cp; 817 * Re-read cnode data for all active vnodes (non-metadata files). 833 /* update cnode's catalog descriptor */ 851 * re-read cnode data for all active vnodes. 2541 struct cnode *cp; 2577 struct cnode *cp; 2699 * - check that the cnode id is valid 2700 * - call hfs_vget() to get the locked cnode 2701 * - check for an unallocated cnode (i_mod [all...] |
H A D | hfs_hotfiles.c | 763 * Note: the cnode is locked on entry. 850 * Note: the cnode is locked on entry. 1790 struct cnode *cp = NULL;
|
/darwin-on-arm/xnu/bsd/sys/ |
H A D | cprotect.h | 78 typedef struct cnode * cnode_ptr_t; 88 * for the given file. This is contained within the cnode 175 int cp_entry_create_keys(struct cprotect **entry_ptr, struct cnode *dcp, struct hfsmount *hfsmp, 185 int cp_setxattr(struct cnode *cp, struct cprotect *entry, struct hfsmount *hfsmp, uint32_t fileid, int options);
|
/darwin-on-arm/xnu/bsd/kern/ |
H A D | kern_malloc.c | 422 { 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...] |