2
* Copyright (C) 2002-2005 Novell/SUSE
4
* This program is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU General Public License as
6
* published by the Free Software Foundation, version 2 of the
13
#include <sys/types.h>
14
#include <linux/module.h>
17
int main(int argc, char *argv[])
21
struct module_info modinfo;
24
fprintf(stderr, "Usage: %s [module]\n",
27
} else if (argc == 1) {
28
if (query_module(NULL, QM_MODULES, &buffer, BUFSIZE,
30
fprintf(stderr, "FAIL: query_module failed - %s\n",
34
/* printf ("First module: %s\n", buffer); */
36
if (query_module(argv[1], QM_INFO, &modinfo, sizeof(modinfo),
38
fprintf(stderr, "FAIL: query_module failed - %s\n",
42
/* printf ("module %s info: address 0x%8x size %u flags 0x%8x "
51
/* printf("Kernel release version is %s\n", release); */