linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to create library module with callbacks?
@ 2011-10-14 13:21 Rafał Miłecki
  2011-10-14 14:42 ` Pavel Roskin
  2011-10-14 14:43 ` Arend van Spriel
  0 siblings, 2 replies; 3+ messages in thread
From: Rafał Miłecki @ 2011-10-14 13:21 UTC (permalink / raw)
  To: linux-wireless

I want to create module library, which will handle PHY operations on
Broadcom card. For most of the time, I'm going to call library
functions from b43.

However, there are places where I need to call some (b43) driver
function from library module.

How can I handle that? Should I pass some functions pointers to the
library? Is that going to work? Or is there a better approach?

P.S.
I'm asking at linux-wireless, it's not wireless related however. I
think question is quite simple for C hackers and there is no need to
hit LKML.

-- 
Rafał

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

end of thread, other threads:[~2011-10-14 14:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-14 13:21 How to create library module with callbacks? Rafał Miłecki
2011-10-14 14:42 ` Pavel Roskin
2011-10-14 14:43 ` Arend van Spriel

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