On Fri, 14 Oct 2011 15:21:16 +0200 Rafał Miłecki <zajec5@xxxxxxxxx> wrote: > 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? Yes, that should work. All modules and the kernel live in the same address space. But you should make sure that those pointers won't be used if the calling module is unloaded. In fact, b43 does it already with mac80211, ssb and bcma. See b43_hw_ops, b43_ssb_driver and b43_bcma_driver in the code. -- Regards, Pavel Roskin -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html