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] get_xen_class()

To: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Subject: Re: [Xen-devel] get_xen_class()
From: chrisbenninger <chrisbenninger@xxxxxxxxx>
Date: Fri, 28 Jan 2011 11:24:30 -0800
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 28 Jan 2011 11:26:31 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=XnxBbSgocenzrZTOlpWAG89TOv0cNE1bPVO1IM4DMAs=; b=tS+STwex5/DZrEjPGBWsqlAH9qGuZro+njfh/jWoAlxqPHJVpAR9F7Yi+6zWEc8/kv tDpe1gq8t9WapD2uI8GxmugQ6u+efHql/7z/RBS7F69IENMs+NuX/cpUfV7XviSYWSF0 9c7pwGBuJLMb+/0H72cSlDAC3Nc/qGQ1eDAiE=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=rcukV84zRDGwaPH11O9tbTMLChFvZPBuLroEqNI5rqf+w3szlEXepD4PCGCEmFMU47 o0vmrIdbwWFiQUmMraf/dhrb1VPZ/5FajEIa+iYnSiiodEvYCdP/FR/mnVfcNmUfo6p9 r9+h8e30p7/uHmEBYNuEpXQTzf6WQOyP267X4=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1296205345.14780.6931.camel@xxxxxxxxxxxxxxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <AANLkTikw2zinEUQMToJW8XbRwh0wuO9N72M83Mqo9nr=@xxxxxxxxxxxxxx> <1296205345.14780.6931.camel@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Awesome, thanks for the answer.

As it turns out, a ton of the work is done for you nowadays by udev, so device_create() did it. Thanks

Chris Benninger
University of Victoria, Computer Science
cbenning@xxxxxxxxxx
http://benninger.ca


On Fri, Jan 28, 2011 at 1:02 AM, Ian Campbell <Ian.Campbell@xxxxxxxxxx> wrote:
On Thu, 2011-01-27 at 18:40 +0000, chrisbenninger wrote:

> I am building a driver for Xen for a research project. I recently
> started building against a newer kernel (2.6.32.27) and my char driver
> no longer appears in /dev/ because the get_xen_class() function
> doesn't seem to be around anymore. Any hints as to how to take care of
> this?

I think the class stuff is deprecated upstream, see
http://lwn.net/Articles/188707/.

I suspect you should just be using misc_register() or device_create()
instead of whatever you are doing today, no class required.

Ian.


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>