From: Ryan Riley <rileyrd@purdue.edu>
To: xen-devel@lists.xensource.com
Cc: jeans.wang@gmail.com
Subject: Re: how to make xenbus do .probe?
Date: Tue, 06 Mar 2007 14:31:17 -0500 [thread overview]
Message-ID: <45EDC185.4060302@purdue.edu> (raw)
In-Reply-To: <45EDC042.8090003@purdue.edu>
Yeah, the wiki page you refer to in a later message is incorrect, but I
think that the major thing wrong with it is the xenstore-write commands.
(At the moment I don't have time to check whether the skeleton driver
code is correct, and I can't remember if I had to tweak it when I went
through what you're going through.)
Here's 4 xenstore-write commands that should get a probe out of the device:
xenstore-write /local/domain/5/device/mydevice/0/state 1
xenstore-write /local/domain/0/backend/mydevice/5/0/frontend-id 5
xenstore-write /local/domain/0/backend/mydevice/5/0/frontend
/local/domain/5/device/mydevice/0
xenstore-write /local/domain/0/backend/mydevice/5/0/state 1
Quick note: That will only work once per boot, because once the driver
is probed with frontend-id 5 the xenbus code seems to be smart enough to
not do it again. If you need to make another probe happen during the
same boot, just increment the 5 all around. I hope this helps.
Thanks
Ryan
Jian Wang <jeans.wang@gmail.com> wrote:
> Hi,
> Can anyone please tell me how to get ".probe" function in "struct
> xenbus_driver" called?
> I want to do one simple test of event channel communication between
> peer modules of
> domU and dom0.
> I wrote one backend and one frontend driver (I tried registered as
> misc/blk/input device) where I put in all my xenbus routines, but
> cannot get .probe called after insmod my module, I have put
> one week's time to try to find the answer, failed.
>
> Thanks a lot!
> -Jian
>
>
next parent reply other threads:[~2007-03-06 19:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <45EDC042.8090003@purdue.edu>
2007-03-06 19:31 ` Ryan Riley [this message]
[not found] ` <f8c101b70703061835j4c7572a0g88adaded454dfd5b@mail.gmail.com>
2007-03-07 18:03 ` how to make xenbus do .probe? Ryan Riley
2007-02-28 23:32 Jian Wang
2007-03-05 18:27 ` Jian Wang
2007-03-05 19:23 ` Jian Wang
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=45EDC185.4060302@purdue.edu \
--to=rileyrd@purdue.edu \
--cc=jeans.wang@gmail.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.