On Tue, 22 Feb 2005 13:04:01 +0530, Shrinand Javadekar
<[EMAIL PROTECTED]> wrote:
> Hi!!
> 
> I want to create a file in /proc which I would be using for
> some of interprocess communication.
> 
> The code snippet is given below.  However, it just does not seem to work
> :((. The code compiles perfectly but the function create_proc_entry returns
> NULL everytime :(.
> 
> Is there something I'm missing out on? All suggestions are welcome :)
> 
> COde:
> ======
> 
> struct proc_dir_entry *entry;
> char * filename = "spoon";
> entry = create_proc_entry(filename,0444,(struct proc_dir_entry *)0);
> ...
> 
> Thanks in advance
> -Shri
> --
> 

should not be a issue, if CONFIG_PROC is defined in the kernel.

Also, check /proc/ksyms, if the symbol create_proc_entry is exported.
The module may compile successfully, but linking happens when you insmod it.

- Kiran.
-- 
http://www.geocities.com/kirandivekar/
--
______________________________________________________________________
Pune GNU/Linux Users Group Mailing List:      ([email protected])
List Information:  http://plug.org.in/mailing-list/listinfo/plug-mail
Send 'help' to [EMAIL PROTECTED] for mailing instructions.

Reply via email to