Changeset ad4b32c in mainline for uspace/srv/fs/fat/fat_fat.h
- Timestamp:
- 2009-09-04T21:50:59Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 309ede1
- Parents:
- 7e266ff (diff), 40240b1 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/fat/fat_fat.h
r7e266ff rad4b32c 59 59 typedef uint16_t fat_cluster_t; 60 60 61 #define fat_clusters_get( bs, dh, fc) \62 fat_cluster_walk((bs), (dh), (fc), NULL, ( uint16_t) -1)63 extern uint16_t fat_cluster_walk(struct fat_bs *, dev_handle_t, fat_cluster_t,64 fat_cluster_t *, uint16_t );61 #define fat_clusters_get(numc, bs, dh, fc) \ 62 fat_cluster_walk((bs), (dh), (fc), NULL, (numc), (uint16_t) -1) 63 extern int fat_cluster_walk(struct fat_bs *, dev_handle_t, fat_cluster_t, 64 fat_cluster_t *, uint16_t *, uint16_t); 65 65 66 #define fat_block_get(bs, np, bn, flags) \ 67 _fat_block_get((bs), (np)->idx->dev_handle, (np)->firstc, (bn), (flags)) 66 #define fat_block_get(b, bs, np, bn, flags) \ 67 _fat_block_get((b), (bs), (np)->idx->dev_handle, (np)->firstc, (bn), \ 68 (flags)) 68 69 69 extern struct block *_fat_block_get(struct fat_bs *, dev_handle_t,70 extern int _fat_block_get(block_t **, struct fat_bs *, dev_handle_t, 70 71 fat_cluster_t, bn_t, int); 71 72 72 extern voidfat_append_clusters(struct fat_bs *, struct fat_node *,73 extern int fat_append_clusters(struct fat_bs *, struct fat_node *, 73 74 fat_cluster_t); 74 extern voidfat_chop_clusters(struct fat_bs *, struct fat_node *,75 extern int fat_chop_clusters(struct fat_bs *, struct fat_node *, 75 76 fat_cluster_t); 76 77 extern int fat_alloc_clusters(struct fat_bs *, dev_handle_t, unsigned, 77 78 fat_cluster_t *, fat_cluster_t *); 78 extern voidfat_free_clusters(struct fat_bs *, dev_handle_t, fat_cluster_t);79 extern voidfat_alloc_shadow_clusters(struct fat_bs *, dev_handle_t,79 extern int fat_free_clusters(struct fat_bs *, dev_handle_t, fat_cluster_t); 80 extern int fat_alloc_shadow_clusters(struct fat_bs *, dev_handle_t, 80 81 fat_cluster_t *, unsigned); 81 extern fat_cluster_t fat_get_cluster(struct fat_bs *, dev_handle_t, fat_cluster_t); 82 extern void fat_set_cluster(struct fat_bs *, dev_handle_t, unsigned, 82 extern int fat_get_cluster(struct fat_bs *, dev_handle_t, fat_cluster_t, 83 fat_cluster_t *); 84 extern int fat_set_cluster(struct fat_bs *, dev_handle_t, unsigned, 83 85 fat_cluster_t, fat_cluster_t); 84 extern voidfat_fill_gap(struct fat_bs *, struct fat_node *, fat_cluster_t,86 extern int fat_fill_gap(struct fat_bs *, struct fat_node *, fat_cluster_t, 85 87 off_t); 86 extern voidfat_zero_cluster(struct fat_bs *, dev_handle_t, fat_cluster_t);88 extern int fat_zero_cluster(struct fat_bs *, dev_handle_t, fat_cluster_t); 87 89 88 90 #endif
Note:
See TracChangeset
for help on using the changeset viewer.