linux-modules.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Why these functions are empty?
@ 2017-04-14 12:40 wiktoria.lewicka
  2017-04-17 14:29 ` Yauheni Kaliuta
  0 siblings, 1 reply; 2+ messages in thread
From: wiktoria.lewicka @ 2017-04-14 12:40 UTC (permalink / raw)
  To: linux-modules

Hello!
I looked at code in include/linux/module.h and I found empty functions:

static inline void print_modules(void)
{
}

static inline unsigned long module_kallsyms_lookup_name(const char *name)
{
	return 0;
}

static inline int lookup_module_symbol_name(unsigned long addr, char *symna=
me)
{
	return -ERANGE;
}

And why these function haven`t implementation:
static inline int register_module_notifier(struct notifier_block *nb)
{
	/* no events will happen anyway, so this can always succeed */
	return 0;
}

static inline int unregister_module_notifier(struct notifier_block *nb)
{
	return 0;
}

Is module notifier doesn`t exists?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Why these functions are empty?
  2017-04-14 12:40 Why these functions are empty? wiktoria.lewicka
@ 2017-04-17 14:29 ` Yauheni Kaliuta
  0 siblings, 0 replies; 2+ messages in thread
From: Yauheni Kaliuta @ 2017-04-17 14:29 UTC (permalink / raw)
  To: wiktoria.lewicka; +Cc: linux-modules

Hi, wiktoria!

>>>>> On Fri, 14 Apr 2017 14:40:57 +0200, wiktoria lewicka  wrote:

 > Hello!
 > I looked at code in include/linux/module.h and I found empty functions:

 > static inline void print_modules(void)
 > {
 > }

 > static inline unsigned long module_kallsyms_lookup_name(const char *name)
 > {
 > 	return 0;
 > }

 > static inline int lookup_module_symbol_name(unsigned long addr, char *symname)
 > {
 > 	return -ERANGE;
 > }

 > And why these function haven`t implementation:
 > static inline int register_module_notifier(struct notifier_block *nb)
 > {
 > 	/* no events will happen anyway, so this can always succeed */
 > 	return 0;
 > }

 > static inline int unregister_module_notifier(struct notifier_block *nb)
 > {
 > 	return 0;
 > }

 > Is module notifier doesn`t exists?

This is "#else" branch of "#ifdef CONFIG_MODULES".

-- 
WBR,
Yauheni Kaliuta

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-04-17 14:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-14 12:40 Why these functions are empty? wiktoria.lewicka
2017-04-17 14:29 ` Yauheni Kaliuta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).