blob: 76a3426bb6d9215c37a3ca9687bca68990ec14ec [file] [log] [blame]
Lucas De Marchi8900b912011-12-22 02:33:36 -02001/*
2 * kmod - one tool to rule them all
3 *
Lucas De Marchia66a6a92012-01-09 00:40:50 -02004 * Copyright (C) 2011-2012 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
22#include "macro.h"
23
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
Lucas De Marchi252c51a2011-12-23 11:33:02 -020037extern const struct kmod_cmd kmod_cmd_list;