Blame tools/kmod.h

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