[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] get_xen_class()


  • To: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
  • 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
  • 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=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.