netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Sharing /proc file
@ 2004-02-20 22:15 Niranjan
  2004-02-20 22:29 ` Stephen Hemminger
  0 siblings, 1 reply; 2+ messages in thread
From: Niranjan @ 2004-02-20 22:15 UTC (permalink / raw)
  To: netdev

Hi,
Is it possible to share a /proc file between two
kernel modules?
Also, what is the best way to share a structure
between two kernel modules ?

Regards,
-Niranjan

__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools

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

* Re: Sharing /proc file
  2004-02-20 22:15 Sharing /proc file Niranjan
@ 2004-02-20 22:29 ` Stephen Hemminger
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2004-02-20 22:29 UTC (permalink / raw)
  To: Niranjan; +Cc: netdev

On Fri, 20 Feb 2004 14:15:06 -0800 (PST)
Niranjan <niranjan_cs2905@yahoo.com> wrote:

> Hi,
> Is it possible to share a /proc file between two
> kernel modules?
> Also, what is the best way to share a structure
> between two kernel modules ?
> 
> Regards,
> -Niranjan

If the two modules are so interrelated, why have them separate?
You can use EXPORT_SYMBOL() to share globals between modules.
I can't see a good reason to ever share a single /proc file.
The module that defines the symbol must be the one that manages
the /proc interaction with that structure.

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

end of thread, other threads:[~2004-02-20 22:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-20 22:15 Sharing /proc file Niranjan
2004-02-20 22:29 ` Stephen Hemminger

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).