blob: 1770786d8f1485f4b7f1a0abad57500d158bfd52 [file] [log] [blame]
Lucas De Marchi8900b912011-12-22 02:33:36 -02001/*
2 * kmod - one tool to rule them all
3 *
Lucas De Marchie6b0e492013-01-16 11:27:21 -02004 * Copyright (C) 2011-2013 ProFUSION embedded systems
Lucas De Marchi8900b912011-12-22 02:33:36 -02005 *
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
Lucas De Marchie8fd8fe2012-07-18 10:19:48 -030020#pragma once
Lucas De Marchi8900b912011-12-22 02:33:36 -020021
Lucas De Marchi576dd432014-10-02 22:03:19 -030022#include <shared/macro.h>
Lucas De Marchi8900b912011-12-22 02:33:36 -020023
24struct kmod_cmd {
25 const char *name;
26 int (*cmd)(int argc, char *argv[]);
27 const char *help;
28};
29
Lucas De Marchi6fcf69e2011-12-22 03:01:45 -020030extern const struct kmod_cmd kmod_cmd_compat_lsmod;
Lucas De Marchif712ebc2011-12-22 03:39:11 -020031extern const struct kmod_cmd kmod_cmd_compat_rmmod;
Lucas De Marchiad602692011-12-22 03:45:07 -020032extern const struct kmod_cmd kmod_cmd_compat_insmod;
Lucas De Marchi769becb2011-12-22 03:50:54 -020033extern const struct kmod_cmd kmod_cmd_compat_modinfo;
Lucas De Marchifa29c0e2011-12-22 03:54:46 -020034extern const struct kmod_cmd kmod_cmd_compat_modprobe;
Lucas De Marchif6cf14c2011-12-27 19:56:33 -020035extern const struct kmod_cmd kmod_cmd_compat_depmod;
Lucas De Marchi6fcf69e2011-12-22 03:01:45 -020036
Caio Marcelo de Oliveira Filho03761882015-03-07 10:32:53 -030037extern const struct kmod_cmd kmod_cmd_insert;
Lucas De Marchi252c51a2011-12-23 11:33:02 -020038extern const struct kmod_cmd kmod_cmd_list;
Tom Gundersendb6f2fc2013-04-16 22:39:55 +020039extern const struct kmod_cmd kmod_cmd_static_nodes;
Caio Marcelo de Oliveira Filho03761882015-03-07 10:32:53 -030040extern const struct kmod_cmd kmod_cmd_remove;
Lucas De Marchi4a2e20d2012-11-06 16:54:17 -020041
Lucas De Marchi84341fb2012-11-06 17:08:43 -020042#include "log.h"