diff options
author | Erik Troan <ewt@redhat.com> | 1999-06-07 15:50:56 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 1999-06-07 15:50:56 +0000 |
commit | 9eb6ae369c87516c13854e4c02f24e7f1f848e77 (patch) | |
tree | d8fc2b81876c017f9437df79d9368abe05ac7c7c /isys | |
parent | 65531ac9afc25c2aa0d0fb328644724283ef670b (diff) | |
download | anaconda-9eb6ae369c87516c13854e4c02f24e7f1f848e77.tar.gz anaconda-9eb6ae369c87516c13854e4c02f24e7f1f848e77.tar.xz anaconda-9eb6ae369c87516c13854e4c02f24e7f1f848e77.zip |
*** empty log message ***
Diffstat (limited to 'isys')
-rw-r--r-- | isys/isys.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/isys/isys.h b/isys/isys.h new file mode 100644 index 000000000..01e278601 --- /dev/null +++ b/isys/isys.h @@ -0,0 +1,35 @@ +#ifndef H_ISYS +#define H_ISYS + +enum driverMajor { DRIVER_NONE = 0, DRIVER_SCSI, DRIVER_NET, DRIVER_CDROM, + DRIVER_PCMCIA, DRIVER_FS, DRIVER_OTHER = 1000}; +enum driverMinor { DRIVER_MINOR_NONE = 0, DRIVER_MINOR_ETHERNET, + DRIVER_MINOR_PLIP, DRIVER_MINOR_TR }; + +struct moduleArg { + char * arg; + char * description; +}; + +struct moduleInfo { + char * moduleName; + char * description; + enum driverMajor major; + enum driverMinor minor; + int numArgs; + struct moduleArg * args; +}; + +int isysReadModuleInfo(const char * filename); +struct moduleInfo * isysFindModuleInfo(const char * moduleName); + +/* NULL moduleName indicates the end of the list; the list must be freed() */ +struct moduleInfo * isysGetModuleList(enum driverMajor major); + +/* returns -2 for errno, -1 for unknown device */ +int devMakeInode(char * devName, char * path); + +int insmod(char * modName, char ** args); +int rmmod(char * modName); + +#endif |