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