Changeset 8ff0bd2 in mainline for uspace/srv/bd/file_bd/file_bd.c
- Timestamp:
- 2011-09-04T11:30:58Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 03bc76a
- Parents:
- d2c67e7 (diff), deac215e (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
-
uspace/srv/bd/file_bd/file_bd.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/file_bd/file_bd.c
rd2c67e7 r8ff0bd2 45 45 #include <as.h> 46 46 #include <fibril_synch.h> 47 #include < devmap.h>47 #include <loc.h> 48 48 #include <sys/types.h> 49 49 #include <sys/typefmt.h> … … 61 61 static FILE *img; 62 62 63 static devmap_handle_t devmap_handle;63 static service_id_t service_id; 64 64 static fibril_mutex_t dev_lock; 65 65 66 66 static void print_usage(void); 67 67 static int file_bd_init(const char *fname); 68 static void file_bd_connection(ipc_callid_t iid, ipc_call_t *icall );68 static void file_bd_connection(ipc_callid_t iid, ipc_call_t *icall, void *); 69 69 static int file_bd_read_blocks(uint64_t ba, size_t cnt, void *buf); 70 70 static int file_bd_write_blocks(uint64_t ba, size_t cnt, const void *buf); … … 117 117 return -1; 118 118 119 rc = devmap_device_register(device_name, &devmap_handle);119 rc = loc_service_register(device_name, &service_id); 120 120 if (rc != EOK) { 121 121 printf(NAME ": Unable to register device '%s'.\n", … … 142 142 long img_size; 143 143 144 rc = devmap_driver_register(NAME, file_bd_connection);144 rc = loc_server_register(NAME, file_bd_connection); 145 145 if (rc < 0) { 146 146 printf(NAME ": Unable to register driver.\n"); … … 170 170 } 171 171 172 static void file_bd_connection(ipc_callid_t iid, ipc_call_t *icall )172 static void file_bd_connection(ipc_callid_t iid, ipc_call_t *icall, void *arg) 173 173 { 174 174 void *fs_va = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.
