kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* the use case of MODULE_SOFTDEP
@ 2020-03-22 16:17 Tomek The Messenger
  2020-03-22 16:38 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Tomek The Messenger @ 2020-03-22 16:17 UTC (permalink / raw)
  To: kernelnewbies


[-- Attachment #1.1: Type: text/plain, Size: 523 bytes --]

What is the use case of using:
MODULE_SOFTDEP("pre: another-external-kernel-module...");
because I completely don't understand.
If I have phandle to another-external-kernel-module in dts which is
mandatory in my kernel driver then should I put this line in my kernel
driver code?
If I use function of core.c which is my framework and this is also as
external module then should I  put this line in my kernel driver code:
  MODULE_SOFTDEP("pre: testframework-core");

Who knows please respond as this is black magic for me.

[-- Attachment #1.2: Type: text/html, Size: 660 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

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

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

* Re: the use case of MODULE_SOFTDEP
  2020-03-22 16:17 the use case of MODULE_SOFTDEP Tomek The Messenger
@ 2020-03-22 16:38 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2020-03-22 16:38 UTC (permalink / raw)
  To: Tomek The Messenger; +Cc: kernelnewbies

On Sun, Mar 22, 2020 at 05:17:21PM +0100, Tomek The Messenger wrote:
> What is the use case of using:
> MODULE_SOFTDEP("pre: another-external-kernel-module...");
> because I completely don't understand.
> If I have phandle to another-external-kernel-module in dts which is
> mandatory in my kernel driver then should I put this line in my kernel
> driver code?
> If I use function of core.c which is my framework and this is also as
> external module then should I  put this line in my kernel driver code:
>   MODULE_SOFTDEP("pre: testframework-core");
> 
> Who knows please respond as this is black magic for me.

If you do not understand what this does, I would not worry about it as
that implies that you do not need it :)

Just write a simple driver, no need for fancy frameworks or anything
else, first.  Then worry about optimizing it after you get review from
the community.

good luck!

greg k-h

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

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

end of thread, other threads:[~2020-03-22 16:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-22 16:17 the use case of MODULE_SOFTDEP Tomek The Messenger
2020-03-22 16:38 ` Greg KH

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