|
Packit Service |
68b988 |
/*
|
|
Packit Service |
68b988 |
* kmod - one tool to rule them all
|
|
Packit Service |
68b988 |
*
|
|
Packit Service |
68b988 |
* Copyright (C) 2011-2013 ProFUSION embedded systems
|
|
Packit Service |
68b988 |
*
|
|
Packit Service |
68b988 |
* This program is free software: you can redistribute it and/or modify
|
|
Packit Service |
68b988 |
* it under the terms of the GNU General Public License as published by
|
|
Packit Service |
68b988 |
* the Free Software Foundation, either version 2 of the License, or
|
|
Packit Service |
68b988 |
* (at your option) any later version.
|
|
Packit Service |
68b988 |
*
|
|
Packit Service |
68b988 |
* This program is distributed in the hope that it will be useful,
|
|
Packit Service |
68b988 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
68b988 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit Service |
68b988 |
* GNU General Public License for more details.
|
|
Packit Service |
68b988 |
*
|
|
Packit Service |
68b988 |
* You should have received a copy of the GNU General Public License
|
|
Packit Service |
68b988 |
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
Packit Service |
68b988 |
*/
|
|
Packit Service |
68b988 |
|
|
Packit Service |
68b988 |
#pragma once
|
|
Packit Service |
68b988 |
|
|
Packit Service |
68b988 |
#include <shared/macro.h>
|
|
Packit Service |
68b988 |
|
|
Packit Service |
68b988 |
struct kmod_cmd {
|
|
Packit Service |
68b988 |
const char *name;
|
|
Packit Service |
68b988 |
int (*cmd)(int argc, char *argv[]);
|
|
Packit Service |
68b988 |
const char *help;
|
|
Packit Service |
68b988 |
};
|
|
Packit Service |
68b988 |
|
|
Packit Service |
68b988 |
extern const struct kmod_cmd kmod_cmd_compat_lsmod;
|
|
Packit Service |
68b988 |
extern const struct kmod_cmd kmod_cmd_compat_rmmod;
|
|
Packit Service |
68b988 |
extern const struct kmod_cmd kmod_cmd_compat_insmod;
|
|
Packit Service |
68b988 |
extern const struct kmod_cmd kmod_cmd_compat_modinfo;
|
|
Packit Service |
68b988 |
extern const struct kmod_cmd kmod_cmd_compat_modprobe;
|
|
Packit Service |
68b988 |
extern const struct kmod_cmd kmod_cmd_compat_depmod;
|
|
Packit Service |
68b988 |
|
|
Packit Service |
68b988 |
extern const struct kmod_cmd kmod_cmd_insert;
|
|
Packit Service |
68b988 |
extern const struct kmod_cmd kmod_cmd_list;
|
|
Packit Service |
68b988 |
extern const struct kmod_cmd kmod_cmd_static_nodes;
|
|
Packit Service |
68b988 |
extern const struct kmod_cmd kmod_cmd_remove;
|
|
Packit Service |
68b988 |
|
|
Packit Service |
68b988 |
#include "log.h"
|