Changeset 365e5e08 in mainline
- Timestamp:
- 2011-07-25T19:01:03Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6468072e
- Parents:
- 2eaf655
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/minixfs/mfs_balloc.c
r2eaf655 r365e5e08 45 45 mfs_alloc_bit(struct mfs_instance *inst, uint32_t *idx, bmap_id_t bid); 46 46 47 47 /**Allocate a new inode. 48 * 49 * @param inst Pointer to the filesystem instance. 50 * @param inum Pointer to a 32 bit number where the index of 51 * the new inode will be saved. 52 * 53 * @return EOK on success or a negative error code. 54 */ 48 55 int 49 56 mfs_alloc_inode(struct mfs_instance *inst, uint32_t *inum) … … 52 59 } 53 60 61 /**Free an inode. 62 * 63 * @param inst Pointer to the filesystem instance. 64 * @param inum Number of the inode to free. 65 * 66 * @return EOK on success or a negative error code. 67 */ 54 68 int 55 69 mfs_free_inode(struct mfs_instance *inst, uint32_t inum) … … 58 72 } 59 73 74 /**Allocate a new zone. 75 * 76 * @param inst Pointer to the filesystem instance. 77 * @param zone Pointer to a 32 bit number where the index 78 * of the zone will be saved. 79 * 80 * @return EOK on success or a negative error code. 81 */ 60 82 int 61 83 mfs_alloc_zone(struct mfs_instance *inst, uint32_t *zone) … … 67 89 } 68 90 91 /**Free a zone. 92 * 93 * @param inst Pointer to the filesystem instance. 94 * @param zone Index of the zone to free. 95 * 96 * @return EOK on success or a negative error code. 97 */ 69 98 int 70 99 mfs_free_zone(struct mfs_instance *inst, uint32_t zone) … … 75 104 } 76 105 106 /**Clear a bit in a bitmap. 107 * 108 * @param inst Pointer to the filesystem instance. 109 * @param idx Index of the bit to clear. 110 * @param bid BMAP_ZONE if operating on the zone's bitmap, 111 * BMAP_INODE if operating on the inode's bitmap. 112 * 113 * @return EOK on success or a negative error code. 114 */ 77 115 static int 78 116 mfs_free_bit(struct mfs_instance *inst, uint32_t idx, bmap_id_t bid) … … 127 165 } 128 166 167 /**Search a free bit in a bitmap and mark it as used. 168 * 169 * @param inst Pointer to the filesystem instance. 170 * @param idx Pointer of a 32 bit number where the index 171 * of the found bit will be stored. 172 * @param bid BMAP_ZONE if operating on the zone's bitmap, 173 * BMAP_INODE if operating on the inode's bitmap. 174 * 175 * @return EOK on success or a negative error code. 176 */ 129 177 static int 130 178 mfs_alloc_bit(struct mfs_instance *inst, uint32_t *idx, bmap_id_t bid)
Note:
See TracChangeset
for help on using the changeset viewer.