kdb
[Top] [All Lists]

Re: [PATCH 1/2] add tunable_notifier function ,take2

To: Randy Dunlap <rdunlap@xxxxxxxxxxxx>
Subject: Re: [PATCH 1/2] add tunable_notifier function ,take2
From: Takenori Nagano <t-nagano@xxxxxxxxxxxxx>
Date: Thu, 25 Oct 2007 17:02:12 +0900
Cc: linux-kernel@xxxxxxxxxxxxxxx, vgoyal@xxxxxxxxxx, "Eric W. Biederman" <ebiederm@xxxxxxxxxxxx>, k-miyoshi@xxxxxxxxxxxxx, kexec@xxxxxxxxxxxxxxxxxxx, Bernhard Walle <bwalle@xxxxxxx>, Keith Owens <kaos@xxxxxxxxxx>, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, kdb@xxxxxxxxxxx
In-reply-to: <20071024111629.3e28b452.rdunlap@xenotime.net>
References: <4716FFDB.7090502@ah.jp.nec.com> <47171EEC.4030408@ah.jp.nec.com> <20071024111629.3e28b452.rdunlap@xenotime.net>
Sender: kdb-bounce@xxxxxxxxxxx
User-agent: Thunderbird 2.0.0.6 (Windows/20070728)
Randy Dunlap wrote:
> On Thu, 18 Oct 2007 17:53:00 +0900 Takenori Nagano wrote:
> 
>> This patch adds new notifier function tunable_notifier_chain. Its base is
>> atomic_notifier_chain.
>>
>> Thanks,
>>
>> ---
>>
>> Signed-off-by: Takenori Nagano <t-nagano@xxxxxxxxxxxxx>
>>
>> ---
>> diff -uprN linux-2.6.23.orig/kernel/sys.c linux-2.6.23/kernel/sys.c
>> --- linux-2.6.23.orig/kernel/sys.c   2007-10-10 05:31:38.000000000 +0900
>> +++ linux-2.6.23/kernel/sys.c        2007-10-18 10:08:52.728000000 +0900
>> @@ -38,6 +38,7 @@
>>  #include <linux/syscalls.h>
>>  #include <linux/kprobes.h>
>>  #include <linux/user_namespace.h>
>> +#include <linux/debugfs.h>
>>  
>>  #include <asm/uaccess.h>
>>  #include <asm/io.h>
>> @@ -393,6 +394,243 @@ int blocking_notifier_call_chain(struct 
>>  EXPORT_SYMBOL_GPL(blocking_notifier_call_chain);
> 
>> +/**
>> + *  tunable_atomic_notifier_chain_register
>> + *                          - Add notifier to an tunable notifier chain
> 
> Function name & short description must be on one (long?) line.  :(

OK. I'll fix next version.

>> +
>> +int __kprobes __tunable_atomic_notifier_call_chain(
>> +                                    struct tunable_atomic_notifier_head *nh,
>> +                                    unsigned long val, void *v,
>> +                                    int nr_to_call, int *nr_calls)
>> +{
>> +    int ret;
>> +
>> +    rcu_read_lock();
>> +    ret = notifier_call_chain(&nh->head, val, v, nr_to_call, nr_calls);
>> +    rcu_read_unlock();
>> +    return ret;
>> +}
>> +
>> +EXPORT_SYMBOL_GPL(__tunable_atomic_notifier_call_chain);
> 
> Blank line is usually omitted before EXPORT_SYMBOL....

OK. I'll fix, too.

Thanks,
  Takenori

> ---
> ~Randy
> 
> 
---------------------------
Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.
<Prev in Thread] Current Thread [Next in Thread>