| 59 | } |
| 60 | |
| 61 | int module_has_param(const char *module, const char *param) |
| 62 | { |
| 63 | char command[128]; |
| 64 | |
| 65 | snprintf(command, sizeof(command), |
| 66 | "/sbin/modinfo -F parm %s | /bin/grep -q ^%s:", |
| 67 | module, param); |
| 68 | |
| 69 | return run_command(command) == 0; |
| 70 | } |
| 71 | |
| 72 | int module_load(const char *module, const char *options) |
| 73 | { |
no test coverage detected