Hi guys, 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? Thanks! Chris Benninger University of Victoria, Computer Science cbenning@cs.uvic.ca http://benninger.ca _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
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@lists.xensource.com http://lists.xensource.com/xen-devel
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@cs.uvic.ca http://benninger.ca On Fri, Jan 28, 2011 at 1:02 AM, Ian Campbell <Ian.Campbell@citrix.com>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@lists.xensource.com http://lists.xensource.com/xen-devel