Changes in uspace/drv/root/virt/virt.c [b7fd2a0:cde999a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/root/virt/virt.c
rb7fd2a0 rcde999a 62 62 }; 63 63 64 static errno_t virt_dev_add(ddf_dev_t *dev);65 static errno_t virt_dev_remove(ddf_dev_t *dev);66 static errno_t virt_fun_online(ddf_fun_t *fun);67 static errno_t virt_fun_offline(ddf_fun_t *fun);64 static int virt_dev_add(ddf_dev_t *dev); 65 static int virt_dev_remove(ddf_dev_t *dev); 66 static int virt_fun_online(ddf_fun_t *fun); 67 static int virt_fun_offline(ddf_fun_t *fun); 68 68 69 69 static driver_ops_t virt_ops = { … … 100 100 * @return EOK on success or an error code. 101 101 */ 102 static errno_t virt_add_fun(virt_t *virt, virtual_function_t *vfun)102 static int virt_add_fun(virt_t *virt, virtual_function_t *vfun) 103 103 { 104 104 ddf_dev_t *vdev = virt->dev; 105 105 ddf_fun_t *fun; 106 106 virt_fun_t *rvfun; 107 errno_t rc;107 int rc; 108 108 109 109 ddf_msg(LVL_DEBUG, "Registering function `%s' (match \"%s\")", … … 148 148 } 149 149 150 static errno_t virt_fun_remove(virt_fun_t *rvfun)151 { 152 errno_t rc;150 static int virt_fun_remove(virt_fun_t *rvfun) 151 { 152 int rc; 153 153 const char *name = ddf_fun_get_name(rvfun->fun); 154 154 … … 172 172 173 173 174 static errno_t virt_dev_add(ddf_dev_t *dev)174 static int virt_dev_add(ddf_dev_t *dev) 175 175 { 176 176 virt_t *virt; … … 205 205 } 206 206 207 static errno_t virt_dev_remove(ddf_dev_t *dev)207 static int virt_dev_remove(ddf_dev_t *dev) 208 208 { 209 209 virt_t *virt = (virt_t *)ddf_dev_data_get(dev); 210 errno_t rc;210 int rc; 211 211 212 212 while (!list_empty(&virt->functions)) { … … 224 224 } 225 225 226 static errno_t virt_fun_online(ddf_fun_t *fun)226 static int virt_fun_online(ddf_fun_t *fun) 227 227 { 228 228 ddf_msg(LVL_DEBUG, "virt_fun_online()"); … … 230 230 } 231 231 232 static errno_t virt_fun_offline(ddf_fun_t *fun)232 static int virt_fun_offline(ddf_fun_t *fun) 233 233 { 234 234 ddf_msg(LVL_DEBUG, "virt_fun_offline()");
Note:
See TracChangeset
for help on using the changeset viewer.