]>
Commit | Line | Data |
---|---|---|
8900b916 LDM |
1 | /* |
2 | * kmod - one tool to rule them all | |
3 | * | |
e6b0e49b | 4 | * Copyright (C) 2011-2013 ProFUSION embedded systems |
8900b916 LDM |
5 | * |
6 | * This program is free software: you can redistribute it and/or modify | |
7 | * it under the terms of the GNU General Public License as published by | |
8 | * the Free Software Foundation, either version 2 of the License, or | |
9 | * (at your option) any later version. | |
10 | * | |
11 | * This program is distributed in the hope that it will be useful, | |
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | * GNU General Public License for more details. | |
15 | * | |
16 | * You should have received a copy of the GNU General Public License | |
17 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | |
18 | */ | |
19 | ||
e8fd8fec | 20 | #pragma once |
8900b916 | 21 | |
576dd439 | 22 | #include <shared/macro.h> |
8900b916 LDM |
23 | |
24 | struct kmod_cmd { | |
25 | const char *name; | |
26 | int (*cmd)(int argc, char *argv[]); | |
27 | const char *help; | |
28 | }; | |
29 | ||
6fcf69e6 | 30 | extern const struct kmod_cmd kmod_cmd_compat_lsmod; |
f712ebc4 | 31 | extern const struct kmod_cmd kmod_cmd_compat_rmmod; |
ad602696 | 32 | extern const struct kmod_cmd kmod_cmd_compat_insmod; |
769becb5 | 33 | extern const struct kmod_cmd kmod_cmd_compat_modinfo; |
fa29c0ee | 34 | extern const struct kmod_cmd kmod_cmd_compat_modprobe; |
f6cf14ce | 35 | extern const struct kmod_cmd kmod_cmd_compat_depmod; |
6fcf69e6 | 36 | |
03761881 | 37 | extern const struct kmod_cmd kmod_cmd_insert; |
252c51a9 | 38 | extern const struct kmod_cmd kmod_cmd_list; |
db6f2fc7 | 39 | extern const struct kmod_cmd kmod_cmd_static_nodes; |
03761881 | 40 | extern const struct kmod_cmd kmod_cmd_remove; |
4a2e20df | 41 | |
84341fbe | 42 | #include "log.h" |