Changeset 18626b3 in mainline for uspace/lib/ext2/libext2_inode.c
- Timestamp:
- 2011-06-02T19:04:25Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6a7e497
- Parents:
- cf5e86e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ext2/libext2_inode.c
rcf5e86e r18626b3 45 45 * @param inode pointer to inode 46 46 */ 47 inlineuint32_t ext2_inode_get_mode(ext2_superblock_t *sb, ext2_inode_t *inode)47 uint32_t ext2_inode_get_mode(ext2_superblock_t *sb, ext2_inode_t *inode) 48 48 { 49 49 if (ext2_superblock_get_os(sb) == EXT2_SUPERBLOCK_OS_HURD) { … … 61 61 * @param type EXT2_INODE_MODE_TYPE_* constant to check 62 62 */ 63 inlinebool ext2_inode_is_type(ext2_superblock_t *sb, ext2_inode_t *inode, uint32_t type)63 bool ext2_inode_is_type(ext2_superblock_t *sb, ext2_inode_t *inode, uint32_t type) 64 64 { 65 65 uint32_t mode = ext2_inode_get_mode(sb, inode); … … 72 72 * @param inode pointer to inode 73 73 */ 74 inlineuint32_t ext2_inode_get_user_id(ext2_superblock_t *sb, ext2_inode_t *inode)74 uint32_t ext2_inode_get_user_id(ext2_superblock_t *sb, ext2_inode_t *inode) 75 75 { 76 76 uint32_t os = ext2_superblock_get_os(sb); … … 90 90 * @param inode pointer to inode 91 91 */ 92 inlineuint64_t ext2_inode_get_size(ext2_superblock_t *sb, ext2_inode_t *inode)92 uint64_t ext2_inode_get_size(ext2_superblock_t *sb, ext2_inode_t *inode) 93 93 { 94 94 uint32_t major_rev = ext2_superblock_get_rev_major(sb); … … 109 109 * @param inode pointer to inode 110 110 */ 111 inlineuint32_t ext2_inode_get_group_id(ext2_superblock_t *sb, ext2_inode_t *inode)111 uint32_t ext2_inode_get_group_id(ext2_superblock_t *sb, ext2_inode_t *inode) 112 112 { 113 113 uint32_t os = ext2_superblock_get_os(sb); … … 125 125 * @param inode pointer to inode 126 126 */ 127 inlineuint16_t ext2_inode_get_usage_count(ext2_inode_t *inode)127 uint16_t ext2_inode_get_usage_count(ext2_inode_t *inode) 128 128 { 129 129 return uint16_t_le2host(inode->usage_count); … … 137 137 * @param inode pointer to inode 138 138 */ 139 inlineuint32_t ext2_inode_get_reserved_512_blocks(ext2_inode_t *inode)139 uint32_t ext2_inode_get_reserved_512_blocks(ext2_inode_t *inode) 140 140 { 141 141 return uint32_t_le2host(inode->reserved_512_blocks); … … 148 148 * @param inode pointer to inode 149 149 */ 150 inlineuint32_t ext2_inode_get_reserved_blocks(ext2_superblock_t *sb,150 uint32_t ext2_inode_get_reserved_blocks(ext2_superblock_t *sb, 151 151 ext2_inode_t *inode) 152 152 { … … 160 160 * @param inode pointer to inode 161 161 */ 162 inlineuint32_t ext2_inode_get_flags(ext2_inode_t *inode) {162 uint32_t ext2_inode_get_flags(ext2_inode_t *inode) { 163 163 return uint32_t_le2host(inode->flags); 164 164 } … … 170 170 * @param idx Index to block. Valid values are 0 <= idx < 12 171 171 */ 172 inlineuint32_t ext2_inode_get_direct_block(ext2_inode_t *inode, uint8_t idx)172 uint32_t ext2_inode_get_direct_block(ext2_inode_t *inode, uint8_t idx) 173 173 { 174 174 assert(idx < EXT2_INODE_DIRECT_BLOCKS); … … 183 183 * singly-indirect block and 2 is triply-indirect-block 184 184 */ 185 inlineuint32_t ext2_inode_get_indirect_block(ext2_inode_t *inode, uint8_t idx)185 uint32_t ext2_inode_get_indirect_block(ext2_inode_t *inode, uint8_t idx) 186 186 { 187 187 assert(idx < 3);
Note:
See TracChangeset
for help on using the changeset viewer.