Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 365e5e08 in mainline


Ignore:
Timestamp:
2011-07-25T19:01:03Z (10 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master
Children:
6468072
Parents:
2eaf655
Message:

Add comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/minixfs/mfs_balloc.c

    r2eaf655 r365e5e08  
    4545mfs_alloc_bit(struct mfs_instance *inst, uint32_t *idx, bmap_id_t bid);
    4646
    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 */
    4855int
    4956mfs_alloc_inode(struct mfs_instance *inst, uint32_t *inum)
     
    5259}
    5360
     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 */
    5468int
    5569mfs_free_inode(struct mfs_instance *inst, uint32_t inum)
     
    5872}
    5973
     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 */
    6082int
    6183mfs_alloc_zone(struct mfs_instance *inst, uint32_t *zone)
     
    6789}
    6890
     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 */
    6998int
    7099mfs_free_zone(struct mfs_instance *inst, uint32_t zone)
     
    75104}
    76105
     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 */
    77115static int
    78116mfs_free_bit(struct mfs_instance *inst, uint32_t idx, bmap_id_t bid)
     
    127165}
    128166
     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 */
    129177static int
    130178mfs_alloc_bit(struct mfs_instance *inst, uint32_t *idx, bmap_id_t bid)
Note: See TracChangeset for help on using the changeset viewer.