search for: register_chrdev

Displaying 10 results from an estimated 10 matches for "register_chrdev".

Did you mean: unregister_chrdev
2005 Jan 13
1
Digital IO card and /proc/devices
Hi all, I am having problems to get the SeaLevel IO card to work with CentOS distro. Basically the card is being recognised and shown by lspci BUT /proc/devices file is not updated with the new devices does anyone know why. ? Could someone tell me what/where infos are needed to get /proc/devices to be updated. The reason I require the /proc/devices infos is because I want to run a mknod
2004 Dec 27
1
Make error installing bristuff-0.2.0-rc2b
...ke zaptel: zaptel.c:6295: unknown field `fasync' specified in initializer zaptel.c:6295: warning: excess elements in struct initializer zaptel.c:6295: warning: (near initialization for `zt_fops') zaptel.c: In function `zt_init': zaptel.c:6385: warning: implicit declaration of function `register_chrdev' zaptel.c:6386: `KERN_ERR' undeclared (first use in this function) zaptel.c:6386: syntax error before string constant zaptel.c:6391: `KERN_INFO' undeclared (first use in this function) zaptel.c:6391: syntax error before string constant zaptel.c:6396: warning: implicit declaration of fun...
2013 Jan 17
4
[PATCH] virtio_console: Use virtio device index to generate port name
...r, port, @@ -1961,16 +1955,12 @@ static int virtcons_probe(struct virtio_device *vdev) portdev->vdev = vdev; vdev->priv = portdev; - spin_lock_irq(&pdrvdata_lock); - portdev->drv_index = pdrvdata.index++; - spin_unlock_irq(&pdrvdata_lock); - portdev->chr_major = register_chrdev(0, "virtio-portsdev", &portdev_fops); if (portdev->chr_major < 0) { dev_err(&vdev->dev, "Error %d registering chrdev for device %u\n", - portdev->chr_major, portdev->drv_index); + portdev->chr_major, vdev->index); err = por...
2013 Jan 17
4
[PATCH] virtio_console: Use virtio device index to generate port name
...r, port, @@ -1961,16 +1955,12 @@ static int virtcons_probe(struct virtio_device *vdev) portdev->vdev = vdev; vdev->priv = portdev; - spin_lock_irq(&pdrvdata_lock); - portdev->drv_index = pdrvdata.index++; - spin_unlock_irq(&pdrvdata_lock); - portdev->chr_major = register_chrdev(0, "virtio-portsdev", &portdev_fops); if (portdev->chr_major < 0) { dev_err(&vdev->dev, "Error %d registering chrdev for device %u\n", - portdev->chr_major, portdev->drv_index); + portdev->chr_major, vdev->index); err = por...
2004 Jul 20
0
Error on Zaptel install
I attempt to run make clean:make install and I get the following (cut short for brevity). zaptel.c: In function `zt_init': zaptel.c:6123: warning: implicit declaration of function `register_chrdev' zaptel.c:6124: `KERN_ERR' undeclared (first use in this function) zaptel.c:6124: parse error before string constant zaptel.c:6129: `KERN_INFO' undeclared (first use in this function) zaptel.c:6129: parse error before string constant zaptel.c:6134: warning: implicit declaration of funct...
2003 Dec 10
1
pcnet32 and copybreak condition
...e files and differences with "copybreak" scheme? To be more clear, I don''t see why it''s not possible to take a native linux device driver and recompile it in Xen? Which mechanisms provided by Linux are not provided by Xen (for exemple I saw the implementation of function register_chrdev() in Xen so you can register character device using the same interface as in Linux...). Why, for exemple, it isn''t possible to implement a copybreak mechanism in Xen? Will that imply a too major change? You plan to move the management of device in domain0 using the native linux device dri...
2009 Jun 19
2
[PATCH/RFC] virtio_test: A module for testing virtio via userspace
....remove = __devexit_p(viotest_remove), +}; + +static const struct file_operations viotest_fops = { + .owner = THIS_MODULE, + .open = viotest_open, + .release = viotest_release, + .ioctl = viotest_ioctl, +}; + +static int __init init(void) +{ + int err = 0; + + if (!viotest_major) + viotest_major = register_chrdev(viotest_major, "virtio_test", + &viotest_fops); + else + err = register_chrdev(viotest_major, "virtio_test", + &viotest_fops); + if (err || !viotest_major) + goto out; + + viotest_class = class_create(THIS_MODULE, "viotest"); + if (IS_ERR(viotes...
2009 Jun 19
2
[PATCH/RFC] virtio_test: A module for testing virtio via userspace
....remove = __devexit_p(viotest_remove), +}; + +static const struct file_operations viotest_fops = { + .owner = THIS_MODULE, + .open = viotest_open, + .release = viotest_release, + .ioctl = viotest_ioctl, +}; + +static int __init init(void) +{ + int err = 0; + + if (!viotest_major) + viotest_major = register_chrdev(viotest_major, "virtio_test", + &viotest_fops); + else + err = register_chrdev(viotest_major, "virtio_test", + &viotest_fops); + if (err || !viotest_major) + goto out; + + viotest_class = class_create(THIS_MODULE, "viotest"); + if (IS_ERR(viotes...
2006 Jul 26
5
linux-2.6-xen.hg
Hi, Is the http://xenbits.xensource.com/linux-2.6-xen.hg tree still being updated? if not, what''s the preferred Linux tree to track that has all of the Xen bits? Thanks, Muli _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
2007 Mar 28
2
[PATCH 2/3] User-space grant table device - main driver
A character device for accessing (in user-space) pages that have been granted by other domains. Signed-off-by: Derek Murray <Derek.Murray@cl.cam.ac.uk> _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel