From: Greg KH <greg@kroah.com>
To: Tomek The Messenger <tomekthemessenger@gmail.com>
Cc: kernelnewbies@kernelnewbies.org
Subject: Re: the use case of MODULE_SOFTDEP
Date: Sun, 22 Mar 2020 17:38:26 +0100 [thread overview]
Message-ID: <20200322163826.GC96331@kroah.com> (raw)
In-Reply-To: <CAA4NGysW7KUiVtCTFvmUxntQ5bexaxToj433B+Kt9uxG_cqPaw@mail.gmail.com>
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
prev parent reply other threads:[~2020-03-22 16:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-22 16:17 the use case of MODULE_SOFTDEP Tomek The Messenger
2020-03-22 16:38 ` Greg KH [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200322163826.GC96331@kroah.com \
--to=greg@kroah.com \
--cc=kernelnewbies@kernelnewbies.org \
--cc=tomekthemessenger@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).