Re: API between modules

2023-05-19 Thread Prathu Baronia
On Thu, May 18, 2023 at 08:16:18AM +0100, Lucas Tanure wrote: > 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? Hi Lucas, IIUC you can use MODULE_SOFTDEP macro to establish loading dependencies. This stack overflow

Re: API between modules

2023-05-18 Thread Greg KH
On Thu, May 18, 2023 at 08:16:18AM +0100, Lucas Tanure wrote: > 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

API between modules

2023-05-18 Thread Lucas Tanure
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: