WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] who invokes device's probe function?

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] who invokes device's probe function?
From: Ewan Mellor <ewan@xxxxxxxxxxxxx>
Date: Fri, 14 Oct 2005 00:34:08 +0100
Delivery-date: Thu, 13 Oct 2005 23:31:29 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <200510131820.19687.tiger@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <200510131820.19687.tiger@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
On Thu, Oct 13, 2005 at 06:20:19PM +0400, Anton Korenyushkin wrote:

> Hello,
> 
> I've written simple back/front end drivers. They initialize their xenbus 
> drivers. But probe functions are never executed. I heared that xend does this 
> stuff. How can i make xend probe my driver?

Inside drivers/xen/xenbus/xenbus_probe.c there are watches registered on the
device and backend paths in the store.  These are implicitly rooted to match
the bit in the store corresponding to the domain, so these watches should be
on /local/domain/<domid>/device and /local/domain/<domid>/backend.  When Xend
writes into these locations, the xenbus driver should check whether the device
has already been configured (inside dev_changed) and if not, will call
xenbus_probe_node which will register a new device corresponding to your
front/backend device, all being well.  It will then create device files, a
side-effect of which will be to probe the front/backend driver itself.

HTH,

Ewan.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>