2011-12-22 11:33:36 +07:00
|
|
|
/*
|
|
|
|
* kmod - one tool to rule them all
|
|
|
|
*
|
|
|
|
* Copyright (C) 2011 ProFUSION embedded systems
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _KMOD_H_
|
|
|
|
|
|
|
|
#include "macro.h"
|
|
|
|
|
|
|
|
struct kmod_cmd {
|
|
|
|
const char *name;
|
|
|
|
int (*cmd)(int argc, char *argv[]);
|
|
|
|
const char *help;
|
|
|
|
};
|
|
|
|
|
2011-12-22 12:01:45 +07:00
|
|
|
extern const struct kmod_cmd kmod_cmd_compat_lsmod;
|
2011-12-22 12:39:11 +07:00
|
|
|
extern const struct kmod_cmd kmod_cmd_compat_rmmod;
|
2011-12-22 12:45:07 +07:00
|
|
|
extern const struct kmod_cmd kmod_cmd_compat_insmod;
|
2011-12-22 12:50:54 +07:00
|
|
|
extern const struct kmod_cmd kmod_cmd_compat_modinfo;
|
2011-12-22 12:54:46 +07:00
|
|
|
extern const struct kmod_cmd kmod_cmd_compat_modprobe;
|
2011-12-22 12:01:45 +07:00
|
|
|
|
2011-12-23 20:33:02 +07:00
|
|
|
extern const struct kmod_cmd kmod_cmd_list;
|
2011-12-22 11:33:36 +07:00
|
|
|
#endif
|