kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: pankajgupta.bit@gmail.com (Pankaj Gupta)
To: kernelnewbies@lists.kernelnewbies.org
Subject: using sysctl.conf for module that initialize in early bootup
Date: Fri, 5 Aug 2016 14:52:01 +0530	[thread overview]
Message-ID: <CAPiThYr9AWpUBe9kORiRva3y1baGNh7VF+s_b5h1OEpnpGEu_w@mail.gmail.com> (raw)

Dear All,

I am trying to introduce a flag which controls probe of a driver that
initialize in device_initcall(). I want to use a flag, if the flag is true
driver will be initialed and if its false then probe will return without
registering the driver. The value of flag can be changed at runtime and
that should persist after reboot.

I have searched and found about using /etc/sysctl.conf for this purpose. I
observed that /etc is not mounted on system when device_initcall()
executes.

is there any other way by which i can implement this feature?

Thanks & Regards,

*Pankaj Gupta*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160805/285c35d9/attachment.html 

             reply	other threads:[~2016-08-05  9:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-05  9:22 Pankaj Gupta [this message]
2016-08-05 10:28 ` using sysctl.conf for module that initialize in early bootup Greg KH

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=CAPiThYr9AWpUBe9kORiRva3y1baGNh7VF+s_b5h1OEpnpGEu_w@mail.gmail.com \
    --to=pankajgupta.bit@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /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).