linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Paul Ionescu <paul@acorp.ro>
To: linux-ide@vger.kernel.org, lkml@vger.kernel.org
Subject: sysfs method for registering/unregistering ide devices ?
Date: Sat, 13 Mar 2004 16:43:57 +0200	[thread overview]
Message-ID: <1079189037.6624.11.camel@t40> (raw)

Hello,

Is there any possibility to unregister/scan ide devices with sysfs ?
I've searched lkml and linux-ide list archives and I didn't found any
answers.
Is there any sysfs file like /sys/..../registered, where you could echo
0 or 1 if you want to register or unregister a specific interface ?

Till now, I used hdparm -U/-R option for this task.
While this is still available in kernel 2.6, the implementation of
 HDIO_UNREGISTER_HWIF and  HDIO_SCAN_HWIF seems more like a hack than a
sane implementation.
Reasons:
Unregister and then register the same device, and you will have
different files for it int procfs and sysfs.
For unregistering or registering a device, you need at least a valid
block device. So I cannot unregister all my drives, and register them
again (or at least not at the same time).




                 reply	other threads:[~2004-03-13 14:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1079189037.6624.11.camel@t40 \
    --to=paul@acorp.ro \
    --cc=linux-ide@vger.kernel.org \
    --cc=lkml@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).