mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
1.9 KiB

  1. diff -Naur sysklogd-1.4.1-orig/ksym_mod.c sysklogd-1.4.1/ksym_mod.c
  2. --- sysklogd-1.4.1-orig/ksym_mod.c 2000-09-12 21:15:28.000000000 +0000
  3. +++ sysklogd-1.4.1/ksym_mod.c 2003-08-17 19:14:38.000000000 +0000
  4. @@ -93,7 +93,7 @@
  5. #include <linux/time.h>
  6. #include <linux/module.h>
  7. #else /* __GLIBC__ */
  8. -#include <linux/module.h>
  9. +#include "module.h"
  10. extern __off64_t lseek64 __P ((int __fd, __off64_t __offset, int __whence));
  11. extern int get_kernel_syms __P ((struct kernel_sym *__table));
  12. #endif /* __GLIBC__ */
  13. diff -Naur sysklogd-1.4.1-orig/module.h sysklogd-1.4.1/module.h
  14. --- sysklogd-1.4.1-orig/module.h 1970-01-01 00:00:00.000000000 +0000
  15. +++ sysklogd-1.4.1/module.h 2003-08-17 19:14:38.000000000 +0000
  16. @@ -0,0 +1,62 @@
  17. +/* this file eliminates the need to include <kernel/module.h> */
  18. +/* Module definitions for klogd's module support */
  19. +struct kernel_sym
  20. +{
  21. + unsigned long value;
  22. + char name[60];
  23. +};
  24. +
  25. +struct module_symbol
  26. +{
  27. + unsigned long value;
  28. + const char *name;
  29. +};
  30. +
  31. +struct module_ref
  32. +{
  33. + struct module *dep; /* "parent" pointer */
  34. + struct module *ref; /* "child" pointer */
  35. + struct module_ref *next_ref;
  36. +};
  37. +
  38. +struct module_info
  39. +{
  40. + unsigned long addr;
  41. + unsigned long size;
  42. + unsigned long flags;
  43. + long usecount;
  44. +};
  45. +
  46. +
  47. +typedef struct { volatile int counter; } atomic_t;
  48. +
  49. +struct module
  50. +{
  51. + unsigned long size_of_struct; /* == sizeof(module) */
  52. + struct module *next;
  53. + const char *name;
  54. + unsigned long size;
  55. +
  56. + union
  57. + {
  58. + atomic_t usecount;
  59. + long pad;
  60. + } uc; /* Needs to keep its size - so says rth */
  61. +
  62. + unsigned long flags; /* AUTOCLEAN et al */
  63. +
  64. + unsigned nsyms;
  65. + unsigned ndeps;
  66. +
  67. + struct module_symbol *syms;
  68. + struct module_ref *deps;
  69. + struct module_ref *refs;
  70. + int (*init)(void);
  71. + void (*cleanup)(void);
  72. + const struct exception_table_entry *ex_table_start;
  73. + const struct exception_table_entry *ex_table_end;
  74. +#ifdef __alpha__
  75. + unsigned long gp;
  76. +#endif
  77. +};
  78. +