Searched refs:blocks (Results 1 - 14 of 14) sorted by relevance

/macosx-10.5.8/xnu-1228.15.4/bsd/dev/dtrace/
H A Dblist.h8 * blist = blist_create(blocks)
22 * capable of managing up to (2^31) blocks per blist, though
24 * that. Managing something like 512MB worth of 4K blocks
81 daddr_t bl_free; /* number of free blocks */
93 extern blist_t blist_create(daddr_t blocks);
H A Dblist.c16 * free contiguous range of blocks under the node. It may contain a
49 * to cover the number of blocks requested at creation time even if it
53 * BLIST_BMAP_RADIX blocks per call. It will panic with 'allocation too
153 * number of blocks
155 * blocks must be greater then 0
158 * managing BLIST_BMAP_RADIX blocks.
162 blist_create(daddr_t blocks) argument
173 while (radix < blocks) {
182 bl->bl_blocks = blocks;
186 blst_radix_init(NULL, bl->bl_radix, bl->bl_skip, blocks);
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/hfs/
H A Dhfs_xattr.c93 static int alloc_attr_blks(struct hfsmount *hfsmp, size_t attrsize, size_t extentbufsize, HFSPlusExtentDescriptor *extents, int *blocks);
745 /* Get some blocks. */
760 /* Copy data into the blocks. */
1189 * Free the blocks from extent based attributes.
1192 * before releasing the blocks in the allocation bitmap.
2054 * Allocate blocks for an extent based attribute.
2057 alloc_attr_blks(struct hfsmount *hfsmp, size_t attrsize, size_t extentbufsize, HFSPlusExtentDescriptor *extents, int *blocks) argument
2071 *blocks = blkcnt;
2098 printf("alloc_attr_blks: unexpected failure, %d blocks unallocated\n", blkcnt);
2114 * Release blocks fro
2169 u_int32_t blocks; local
2189 int blocks; local
[all...]
H A Dhfs_hotfiles.c74 int hfl_totalblocks; /* total hot file blocks */
75 int hfl_reclaimblks; /* blocks to reclaim in HFV */
89 u_int32_t blocks; member in struct:hotfile_entry
392 printf("hfs_recording_stop: need to reclaim %d blocks\n", listp->hfl_reclaimblks);
630 * Any file that has blocks inside the hot file
818 entry->blocks = ffp->ff_blocks;
1220 printf("hotfiles_adopt: [%d] adopted %d blocks (%d left)\n", listp->hfl_next, blksmoved, listp->hfl_totalblocks);
1233 printf("hotfiles_adopt: %d blocks free in hot file band\n", hfsmp->hfs_hotfile_freeblks);
1436 printf("hotfiles_evict: %d blocks free in hot file band\n", hfsmp->hfs_hotfile_freeblks);
1603 * Return true if any blocks (o
[all...]
H A Dhfs_vfsutils.c372 vcb->vcbAlBlSt = 0; /* hfs+ allocation blocks start at first block of volume */
819 u_long blocks; local
832 blocks = fp->ff_extents[0].blockCount +
844 blocks = fp->ff_extents[0].blockCount +
849 return (fp->ff_blocks > blocks);
1109 Whoops: the allocation blocks aren't even multiples of the specified base:
1115 /* Try the obvious winner first, to prevent 12K allocation blocks, for instance,
1116 from being handled as two 6K logical blocks instead of 3 4K logical blocks.
2278 /* Convert to allocation blocks
[all...]
H A Dhfs_vnops.c307 * then prevents the de-allocation of its extra blocks.
319 * If there are any extra blocks and there are only 2 refs on
321 * and try to truncate the extra blocks away.
504 u_int64_t blocks; local
506 blocks = VCTOF(vp, cp)->ff_blocks;
507 VATTR_RETURN(vap, va_data_alloc, blocks * (u_int64_t)hfsmp->blockSize);
1336 /* HFS directories don't have any data blocks. */
1421 * locked blocks as they get cleaned up when we finish the transaction
2609 * We need to take action here to prevent it from leaking blocks. If removefile
2734 * destination's rsrc fork, preventing a leak of the rsrc fork's blocks
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/hfs/hfscommon/Misc/
H A DFileExtentMapping.c84 Deallocate all allocation blocks in all extents of an extent
87 Deallocate blocks and delete extent records for all allocation
88 blocks beyond a certain point in a file. The starting point
92 Deallocate all allocation blocks belonging to a given fork.
576 // Loop over the extent record and release the blocks associated with each extent.
602 // allocation blocks represented by the extents are deallocated.
976 // Determine how many blocks need to be allocated.
983 * For deferred allocations just reserve the blocks.
1002 * Give back any unallocated blocks before doing real allocations.
1048 // enough free blocks o
1970 u_int32_t blocks; local
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/vn/
H A Dshadow.c34 * "shadow" file. Subsequent reads from blocks that have been
38 * 1) a bit map to track which blocks have been written
42 * The band map is used to ensure that blocks that are contiguous in the
90 u_long blocks_per_band;/* size in blocks */
413 * The bytes required is the number of blocks in the file,
425 off_t blocks = howmany(file_size, block_size); local
426 return (howmany(blocks, NBBY));
434 * blocks to read. The input values (block_offset, block_count) refer
491 * blocks to write. The input values (block_offset, block_count) refer
524 /* mark these blocks a
[all...]
/macosx-10.5.8/xnu-1228.15.4/osfmk/default_pager/
H A Ddefault_pager_internal.h333 * Controls allocation of blocks within paging area.
502 #define RMAPSIZE(blocks) (howmany(blocks,NBBY))
/macosx-10.5.8/xnu-1228.15.4/libkern/
H A Dzlib.c505 * all blocks if lit_bufsize is not greater than 32K.)
1682 /* Stored blocks are limited to 0xffff bytes, pending_buf is limited
2992 * the last real code. In this case we send two empty static blocks instead
3170 * on 16 bit machines and because stored blocks are restricted to
3391 BLOCKS, /* decompressing blocks */
3414 *blocks; /* current inflate_blocks state */ member in struct:inflate_state
3430 inflate_blocks_reset(s->blocks, z, Z_NULL);
3441 if (((inflate_state*)z->state)->blocks != Z_NULL)
3442 inflate_blocks_free(((inflate_state*)z->state)->blocks, z);
3474 s->blocks
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/hfs/hfscommon/Catalog/
H A DFileIDsServices.c44 static u_int32_t CheckExtents( void *extents, u_int32_t blocks, Boolean isHFSPlus );
/macosx-10.5.8/xnu-1228.15.4/osfmk/ppc/
H A Dhw_exception.s1788 lwz r29,vmmControl(r24) ; (TEST/DEBUG) Get the virtual machine control blocks
1792 li r22,kVmmMaxContextsPerThread ; (TEST/DEBUG) Get the number of control blocks
H A Dsavearea_asm.s1033 li r31,0 ; Show we have no free pool blocks yet
1143 li r31,0 ; Show we have no free pool blocks yet
H A Dskiplists.s1186 lhz r27,mpBSize(r26) ; get #blocks

Completed in 105 milliseconds