Hi,

I have two kernel modules that need to talk over an API, and right
now, they are statically linked together, but I am looking for a
better way to separate them and share an API between them.

A few years ago, I did the HDA component:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/sound/pci/hda/hda_component.h

Using the component API:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/include/linux/component.h

Are there other ways for a module to wait for another module to load
and use its API?
Is there a default way to do that?

I know that with MFD devices, you can have children, but that's not
the case. My modules are not related in that way.

Thanks
Lucas

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Reply via email to