From: Ewan Mellor <ewan@xensource.com>
To: Stefan Berger <stefanb@us.ibm.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: Driver Architecture Changes
Date: Thu, 17 Nov 2005 17:26:45 +0000 [thread overview]
Message-ID: <20051117172645.GC23667@leeni.uk.xensource.com> (raw)
In-Reply-To: <OF31DFFC0B.84810808-ON852570BB.0076898A-852570BB.007749A2@us.ibm.com>
On Wed, Nov 16, 2005 at 04:40:34PM -0500, Stefan Berger wrote:
> Hello Ewan,
>
> I am following the changes with the TPM driver pair. I was wondering
> what causes the 'add' action to be invoked on the hotplug scripts and why
> would one not see a remove action if a previous 'add' action was
> encountered and it had finished successfully.
The add action occurs when the device is registered with the kernel
(xenbus_probe.c:xenbus_probe_node), and you should get a remove when the
device is no longer referenced. Once the frontend driver has flushed through
and closed down, it switches to state Closed, which is seen in the backend
driver's otherend_changed function (blkback/xenbus.c:frontend_changed for
example). This then calls device_unregister, which ought to be enough to
ensure that no-one is referencing the device, and so the kernel will clean up
the sysfs entries etc and you will get a remove hotplug event.
If that's not happening, then there may be a bug which needs further
investigation.
HTH,
Ewan.
next prev parent reply other threads:[~2005-11-17 17:26 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-15 15:25 Driver Architecture Changes Magenheimer, Dan (HP Labs Fort Collins)
2005-11-15 15:33 ` Ewan Mellor
2005-11-16 21:40 ` Stefan Berger
2005-11-17 17:26 ` Ewan Mellor [this message]
2005-11-17 19:51 ` Stefan Berger
2005-11-17 21:37 ` Ewan Mellor
2005-11-18 8:10 ` Muli Ben-Yehuda
2005-11-19 2:54 ` Stefan Berger
2005-11-18 16:47 ` Murillo Fernandes Bernardes
2005-11-18 17:06 ` Ewan Mellor
-- strict thread matches above, loose matches on Subject: below --
2005-11-15 16:58 Magenheimer, Dan (HP Labs Fort Collins)
2005-11-15 0:15 Ewan Mellor
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=20051117172645.GC23667@leeni.uk.xensource.com \
--to=ewan@xensource.com \
--cc=stefanb@us.ibm.com \
--cc=xen-devel@lists.xensource.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.