Changes in uspace/lib/block/libblock.h [4046b2f4:79ae36dd] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/block/libblock.h
r4046b2f4 r79ae36dd 1 1 /* 2 2 * Copyright (c) 2008 Jakub Jermar 3 * Copyright (c) 2008 Martin Decky 4 * Copyright (c) 2011 Martin Sucha 3 * Copyright (c) 2008 Martin Decky 4 * Copyright (c) 2011 Martin Sucha 5 5 * All rights reserved. 6 6 * … … 73 73 /** Readers / Writer lock protecting the contents of the block. */ 74 74 fibril_rwlock_t contents_lock; 75 /** Service ID of service providing the block device. */76 service_id_t service_id;75 /** Handle of the device where the block resides. */ 76 devmap_handle_t devmap_handle; 77 77 /** Logical block address */ 78 78 aoff64_t lba; … … 97 97 }; 98 98 99 extern int block_init(exch_mgmt_t, service_id_t, size_t);100 extern void block_fini( service_id_t);99 extern int block_init(exch_mgmt_t, devmap_handle_t, size_t); 100 extern void block_fini(devmap_handle_t); 101 101 102 extern int block_bb_read( service_id_t, aoff64_t);103 extern void *block_bb_get( service_id_t);102 extern int block_bb_read(devmap_handle_t, aoff64_t); 103 extern void *block_bb_get(devmap_handle_t); 104 104 105 extern int block_cache_init( service_id_t, size_t, unsigned, enum cache_mode);106 extern int block_cache_fini( service_id_t);105 extern int block_cache_init(devmap_handle_t, size_t, unsigned, enum cache_mode); 106 extern int block_cache_fini(devmap_handle_t); 107 107 108 extern int block_get(block_t **, service_id_t, aoff64_t, int);108 extern int block_get(block_t **, devmap_handle_t, aoff64_t, int); 109 109 extern int block_put(block_t *); 110 110 111 extern int block_seqread( service_id_t, size_t *, size_t *, aoff64_t *, void *,111 extern int block_seqread(devmap_handle_t, size_t *, size_t *, aoff64_t *, void *, 112 112 size_t); 113 113 114 extern int block_get_bsize(service_id_t, size_t *); 115 extern int block_get_nblocks(service_id_t, aoff64_t *); 116 extern int block_get_toc(service_id_t, uint8_t, void *); 117 extern int block_read_direct(service_id_t, aoff64_t, size_t, void *); 118 extern int block_read_bytes_direct(service_id_t, aoff64_t, size_t, void *); 119 extern int block_write_direct(service_id_t, aoff64_t, size_t, const void *); 114 extern int block_get_bsize(devmap_handle_t, size_t *); 115 extern int block_get_nblocks(devmap_handle_t, aoff64_t *); 116 extern int block_read_direct(devmap_handle_t, aoff64_t, size_t, void *); 117 extern int block_read_bytes_direct(devmap_handle_t, aoff64_t, size_t, void *); 118 extern int block_write_direct(devmap_handle_t, aoff64_t, size_t, const void *); 120 119 121 120 #endif
Note:
See TracChangeset
for help on using the changeset viewer.