According to module(9), when command is unrecognized, the module should

return EOPNOTSUPP.
This commit is contained in:
Pawel Jakub Dawidek 2004-08-30 09:49:59 +00:00
parent dcbd0fe5aa
commit 74bf4e164b
3 changed files with 3 additions and 3 deletions

View File

@ -134,7 +134,7 @@ cdev_load(module_t mod, int cmd, void *arg)
break; /* Success*/
default: /* we only understand load/unload*/
err = EINVAL;
err = EOPNOTSUPP;
break;
}

View File

@ -153,7 +153,7 @@ load (module_t mod, int cmd, void *arg)
printf("Ok\n");
break;
default :
error = EINVAL;
error = EOPNOTSUPP;
break;
}
return error;

View File

@ -77,7 +77,7 @@ load (struct module *module, int cmd, void *arg)
printf ("syscall unloaded from %d\n", offset);
break;
default :
error = EINVAL;
error = EOPNOTSUPP;
break;
}
return error;