From mboxrd@z Thu Jan 1 00:00:00 1970 From: RuoMu Hu Subject: Re: Confused about create_proc_entry Date: Mon, 09 Jun 2008 01:41:43 +0800 Message-ID: <484C19D7.9050503@gmail.com> References: <484AD369.8030900@gmail.com> <85e5430e0806081002v48cb6625j1877f47c8b98a44e@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: linux-fsdevel@vger.kernel.org To: Narendra Prasad Madanapalli Return-path: Received: from wa-out-1112.google.com ([209.85.146.182]:59881 "EHLO wa-out-1112.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751945AbYFHRlr (ORCPT ); Sun, 8 Jun 2008 13:41:47 -0400 Received: by wa-out-1112.google.com with SMTP id j37so1508188waf.23 for ; Sun, 08 Jun 2008 10:41:46 -0700 (PDT) In-Reply-To: <85e5430e0806081002v48cb6625j1877f47c8b98a44e@mail.gmail.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Narendra Prasad Madanapalli wrote: > Hi Romu, > > I have done small research on the same problem and the details are as > follows: > 1. Before registering a file into /proc/sys/ you want to add the file > entry details in /kernel/sysctl_check.c What do you mean by "registering a file"? By create_proc_entry() or register_sysctl_table()? Another question: Is it possible to add an entry in /proc/sys/kernel by register_sysctl_table() without adding an entry to the kern_table[] array in kernel/sysctl.c? Your research really helped. Thanks. Best regards, Romu