update DS label retrieve calls

This commit is contained in:
David van Moolenbroek 2010-01-25 23:23:43 +00:00
parent 71fe2852f4
commit 1ff4a7dbc6
7 changed files with 19 additions and 15 deletions

View file

@ -1257,11 +1257,12 @@ PRIVATE int sef_cb_init_fresh(int type, sef_init_info_t *info)
atl2_init(devind);
/* Notify Inet of our presence, if it has already been started. */
r = ds_retrieve_u32("inet", &inet_endpt);
r = ds_retrieve_label_num("inet", &inet_endpt);
if (r == OK)
notify(inet_endpt);
else if (r != ESRCH)
printf("ATL2: ds_retrieve_u32 failed for 'inet': %d\n", r);
printf("ATL2: ds_retrieve_label_num failed for 'inet': %d\n",
r);
#if ATL2_FKEY
/* Register debug dump function key. */

View file

@ -162,13 +162,13 @@ PRIVATE int sef_cb_init_fresh(int type, sef_init_info_t *info)
panic("e1000", "tsc_calibrate failed", r);
}
/* Try to notify inet that we are present (again) */
if ((r = ds_retrieve_u32("inet", &tasknr)) == OK)
if ((r = ds_retrieve_label_num("inet", &tasknr)) == OK)
{
notify(tasknr);
}
else if (r != ESRCH)
{
printf("e1000: ds_retrieve_u32 failed for 'inet': %d\n", r);
printf("e1000: ds_retrieve_label_num failed for 'inet': %d\n", r);
}
return(OK);

View file

@ -156,7 +156,7 @@ void driver_init(void)
driver[DRIVER_MAIN].label = MAIN_LABEL;
driver[DRIVER_MAIN].minor = MAIN_MINOR;
r = ds_retrieve_u32(driver[DRIVER_MAIN].label,
r = ds_retrieve_label_num(driver[DRIVER_MAIN].label,
(u32_t *) &driver[DRIVER_MAIN].endpt);
if (r != OK) {
printf("Filter: failed to get main disk driver's endpoint: "
@ -177,7 +177,7 @@ void driver_init(void)
panic(__FILE__, "same driver: not tested", NO_NUM);
}
r = ds_retrieve_u32(driver[DRIVER_BACKUP].label,
r = ds_retrieve_label_num(driver[DRIVER_BACKUP].label,
(u32_t *) &driver[DRIVER_BACKUP].endpt);
if (r != OK) {
printf("Filter: failed to get backup disk driver's "
@ -263,7 +263,7 @@ static int new_driver_ep(int which)
int r;
endpoint_t endpt;
r = ds_retrieve_u32(driver[which].label, (u32_t *) &endpt);
r = ds_retrieve_label_num(driver[which].label, (u32_t *) &endpt);
if (r != OK) {
printf("Filter: DS query for %s failed\n",
@ -458,7 +458,8 @@ static void restart_driver(int which, int tell_rs)
if(w) flt_sleep(1);
w = 1;
r = ds_retrieve_u32(driver[which].label, (u32_t *) &endpt);
r = ds_retrieve_label_num(driver[which].label,
(u32_t *) &endpt);
#if DEBUG2
if (r != OK)

View file

@ -410,11 +410,11 @@ PRIVATE int sef_cb_init_fresh(int type, sef_init_info_t *info)
eth_ign_proto= htons((u16_t) v);
/* Try to notify inet that we are present (again) */
r= ds_retrieve_u32("inet", &tasknr);
r= ds_retrieve_label_num("inet", &tasknr);
if (r == OK)
notify(tasknr);
else if (r != ESRCH)
printf("lance: ds_retrieve_u32 failed for 'inet': %d\n", r);
printf("lance: ds_retrieve_label_num failed for 'inet': %d\n", r);
return(OK);
}

View file

@ -346,7 +346,8 @@ PRIVATE int sef_cb_init_fresh(int type, sef_init_info_t *info)
if (r == OK)
notify(inet_proc_nr);
else if (r != ESRCH)
printf("rtl8139: ds_retrieve_label_num failed for 'inet': %d\n", r);
printf("rtl8139: ds_retrieve_label_num failed for 'inet': %d\n",
r);
return(OK);
}

View file

@ -406,11 +406,12 @@ PRIVATE int sef_cb_init_fresh(int type, sef_init_info_t *info)
* not yet alive.
*/
#if 0
r = ds_retrieve_u32("inet", &inet_proc_nr);
r = ds_retrieve_label_num("inet", &inet_proc_nr);
if (r == OK)
notify(inet_proc_nr);
else if (r != ESRCH)
printf("rtl8169: ds_retrieve_u32 failed for 'inet': %d\n", r);
printf("rtl8169: ds_retrieve_label_num failed for 'inet': %d\n",
r);
#endif
return(OK);

View file

@ -35,9 +35,9 @@ PUBLIC int fs_readsuper() {
return(EINVAL);
}
r = ds_retrieve_u32(fs_dev_label, &tasknr);
r = ds_retrieve_label_num(fs_dev_label, &tasknr);
if (r != OK) {
printf("ISOFS %s:%d ds_retrieve_u32 failed for '%s': %d\n",
printf("ISOFS %s:%d ds_retrieve_label_num failed for '%s': %d\n",
__FILE__, __LINE__, fs_dev_label, r);
return(EINVAL);
}