|
@@ -362,10 +362,8 @@ int is_module_address(unsigned long addr);
|
|
|
|
|
|
|
|
/* Returns module and fills in value, defined and namebuf, or NULL if
|
|
/* Returns module and fills in value, defined and namebuf, or NULL if
|
|
|
symnum out of range. */
|
|
symnum out of range. */
|
|
|
-struct module *module_get_kallsym(unsigned int symnum,
|
|
|
|
|
- unsigned long *value,
|
|
|
|
|
- char *type,
|
|
|
|
|
- char namebuf[128]);
|
|
|
|
|
|
|
+struct module *module_get_kallsym(unsigned int symnum, unsigned long *value,
|
|
|
|
|
+ char *type, char *name, size_t namelen);
|
|
|
|
|
|
|
|
/* Look for this name: can be of form module:name. */
|
|
/* Look for this name: can be of form module:name. */
|
|
|
unsigned long module_kallsyms_lookup_name(const char *name);
|
|
unsigned long module_kallsyms_lookup_name(const char *name);
|
|
@@ -535,8 +533,8 @@ static inline const char *module_address_lookup(unsigned long addr,
|
|
|
|
|
|
|
|
static inline struct module *module_get_kallsym(unsigned int symnum,
|
|
static inline struct module *module_get_kallsym(unsigned int symnum,
|
|
|
unsigned long *value,
|
|
unsigned long *value,
|
|
|
- char *type,
|
|
|
|
|
- char namebuf[128])
|
|
|
|
|
|
|
+ char *type, char *name,
|
|
|
|
|
+ size_t namelen)
|
|
|
{
|
|
{
|
|
|
return NULL;
|
|
return NULL;
|
|
|
}
|
|
}
|