Re: the use case of MODULE_SOFTDEP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]

  Powered by Linux