From: Breno Leitao <leitao@debian.org>
To: jlbec@evilplan.org, hch@lst.de
Cc: netdev@vger.kernel.org
Subject: configfs: Create config_item from netconsole
Date: Thu, 28 Sep 2023 07:44:58 -0700 [thread overview]
Message-ID: <ZRWRal5bW93px4km@gmail.com> (raw)
Right now there is a limitation in netconsole, where it is impossible to
disable or modify the target created from the command line parameter.
(netconsole=...).
"netconsole" cmdline parameter sets the remote IP, and if the remote IP
changes, the machine needs to be rebooted (with the new remote IP set in
the command line parameter).
I am planning to reuse the dynamic netconsole mechanism for
the 'command line' target, i.e., create a `cmdline` configfs_item for
the "command line" target, so, the user can modify the "command line"
target in configfs in runtime. Something as :
echo 0 > /sys/kernel/config/netconsole/cmdline/enabled
echo <new-IP> > /sys/kernel/config/netconsole/cmdline/remote_ip
echo 1 > /sys/kernel/config/netconsole/cmdline/enabled
I didn't find a configfs API to register a configfs_item into a
config_group. Basically the make_item() callbacks are called once the
inode is created by the user at mkdir(2) time, but now I need to create
it at the driver initialization.
Should I create a configfs_register_item() to solve this problem?
Thanks!
next reply other threads:[~2023-09-28 14:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-28 14:44 Breno Leitao [this message]
2023-09-29 18:51 ` configfs: Create config_item from netconsole Joel Becker
2023-10-02 14:23 ` Breno Leitao
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=ZRWRal5bW93px4km@gmail.com \
--to=leitao@debian.org \
--cc=hch@lst.de \
--cc=jlbec@evilplan.org \
--cc=netdev@vger.kernel.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).