2011-12-22 11:33:36 +07:00
|
|
|
/*
|
|
|
|
* kmod - one tool to rule them all
|
|
|
|
*
|
2013-01-16 20:27:21 +07:00
|
|
|
* Copyright (C) 2011-2013 ProFUSION embedded systems
|
2011-12-22 11:33:36 +07:00
|
|
|
*
|
|
|
|
* 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/>.
|
|
|
|
*/
|
|
|
|
|
2012-07-18 20:19:48 +07:00
|
|
|
#pragma once
|
2011-12-22 11:33:36 +07:00
|
|
|
|
|
|
|
#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-28 04:56:33 +07:00
|
|
|
extern const struct kmod_cmd kmod_cmd_compat_depmod;
|
2011-12-22 12:01:45 +07:00
|
|
|
|
2011-12-23 20:33:02 +07:00
|
|
|
extern const struct kmod_cmd kmod_cmd_list;
|
2012-11-07 01:54:17 +07:00
|
|
|
|
2012-11-07 02:08:43 +07:00
|
|
|
#include "log.h"
|