Displaying 20 results from an estimated 44 matches for "chrdev".
Did you mean:
chardev
2013 Jan 17
4
[PATCH] virtio_console: Use virtio device index to generate port name
...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
...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 May 29
0
DAHDI-Linux and DAHDI-Tools 2.7.0-rc1 Now Available
...pp: FXO: new CID style -- passthrough
xpp: FXO: in-firmware polarity-reversal detection
sysfs: new channel attr (ec_factory, ec_state)
sysfs: stringify channels 'sigcap' attribute
dahdi: sysfs: add channel attributes
dahdi: sysfs: use dynamically allocated chrdev's
dahdi: sysfs: chrdev region (not usefull yet)
dahdi: sysfs: a channel bus (not usefull yet)
xpp: FXS: improve fxs_info output layout
xpp: BRI: make it always SYNC_MODE_AB (like PRI)
xpp: PRI/BRI: fix channels opening/closing:
xpp: init_card: better va...
2013 May 29
0
DAHDI-Linux and DAHDI-Tools 2.7.0-rc1 Now Available
...pp: FXO: new CID style -- passthrough
xpp: FXO: in-firmware polarity-reversal detection
sysfs: new channel attr (ec_factory, ec_state)
sysfs: stringify channels 'sigcap' attribute
dahdi: sysfs: add channel attributes
dahdi: sysfs: use dynamically allocated chrdev's
dahdi: sysfs: chrdev region (not usefull yet)
dahdi: sysfs: a channel bus (not usefull yet)
xpp: FXS: improve fxs_info output layout
xpp: BRI: make it always SYNC_MODE_AB (like PRI)
xpp: PRI/BRI: fix channels opening/closing:
xpp: init_card: better va...
2013 Jun 07
0
DAHDI-Linux and DAHDI-Tools 2.7.0 Now Available
...pp: FXO: new CID style -- passthrough
xpp: FXO: in-firmware polarity-reversal detection
sysfs: new channel attr (ec_factory, ec_state)
sysfs: stringify channels 'sigcap' attribute
dahdi: sysfs: add channel attributes
dahdi: sysfs: use dynamically allocated chrdev's
dahdi: sysfs: chrdev region (not usefull yet)
dahdi: sysfs: a channel bus (not usefull yet)
xpp: FXS: improve fxs_info output layout
xpp: BRI: make it always SYNC_MODE_AB (like PRI)
xpp: PRI/BRI: fix channels opening/closing:
xpp: init_card: better va...
2013 Jun 07
0
DAHDI-Linux and DAHDI-Tools 2.7.0 Now Available
...pp: FXO: new CID style -- passthrough
xpp: FXO: in-firmware polarity-reversal detection
sysfs: new channel attr (ec_factory, ec_state)
sysfs: stringify channels 'sigcap' attribute
dahdi: sysfs: add channel attributes
dahdi: sysfs: use dynamically allocated chrdev's
dahdi: sysfs: chrdev region (not usefull yet)
dahdi: sysfs: a channel bus (not usefull yet)
xpp: FXS: improve fxs_info output layout
xpp: BRI: make it always SYNC_MODE_AB (like PRI)
xpp: PRI/BRI: fix channels opening/closing:
xpp: init_card: better va...
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
2014 Sep 18
0
[PATCH 2/5] hw_random: use reference counts on each struct hwrng.
...6 @@ static inline int hwrng_init(struct hwrng *rng)
return 0;
}
-static inline void hwrng_cleanup(struct hwrng *rng)
-{
- if (rng && rng->cleanup)
- rng->cleanup(rng);
-}
-
static int rng_dev_open(struct inode *inode, struct file *filp)
{
/* enforce read-only access to this chrdev */
@@ -154,21 +202,22 @@ static ssize_t rng_dev_read(struct file *filp, char __user *buf,
ssize_t ret = 0;
int err = 0;
int bytes_read, len;
+ struct hwrng *rng;
while (size) {
- if (mutex_lock_interruptible(&rng_mutex)) {
- err = -ERESTARTSYS;
+ rng = get_current_rng();
+ if (IS...
2010 Jul 19
17
BLKTAPCTRL[2375]: blktapctrl_linux.c:86: blktap0 open failed
I''m getting this message (subject line) in daemon.log every time I
start or restart xend. I''m not sure if this is related to the fact
that I cannot boot up my Windows domU from a VHD file. The Windows
domU was working fine with Xen 4.0.0 (with 2.6.32.14 dom0 kernel).
When I upgraded to Xen 4.0.1-rc4 (with 2.6.32.16 dom0 kernel), I can
no long boot the Windows domU from VHD. The
2014 Sep 18
0
[PATCH v2 3/6] hw_random: use reference counts on each struct hwrng.
...6 @@ static inline int hwrng_init(struct hwrng *rng)
return 0;
}
-static inline void hwrng_cleanup(struct hwrng *rng)
-{
- if (rng && rng->cleanup)
- rng->cleanup(rng);
-}
-
static int rng_dev_open(struct inode *inode, struct file *filp)
{
/* enforce read-only access to this chrdev */
@@ -154,21 +202,22 @@ static ssize_t rng_dev_read(struct file *filp, char __user *buf,
ssize_t ret = 0;
int err = 0;
int bytes_read, len;
+ struct hwrng *rng;
while (size) {
- if (mutex_lock_interruptible(&rng_mutex)) {
- err = -ERESTARTSYS;
+ rng = get_current_rng();
+ if (IS...
2014 Sep 18
9
[PATCH v2 0/6] fix hw_random stuck
When I hotunplug a busy virtio-rng device or try to access
hwrng attributes in non-smp guest, it gets stuck.
My original was pain, Rusty posted a real fix. This patchset
fixed two issue in v1, and tested by my 6+ cases.
| test 0:
| hotunplug rng device from qemu monitor
|
| test 1:
| guest) # dd if=/dev/hwrng of=/dev/null &
| hotunplug rng device from qemu monitor
|
| test 2:
|
2014 Sep 18
9
[PATCH v2 0/6] fix hw_random stuck
When I hotunplug a busy virtio-rng device or try to access
hwrng attributes in non-smp guest, it gets stuck.
My original was pain, Rusty posted a real fix. This patchset
fixed two issue in v1, and tested by my 6+ cases.
| test 0:
| hotunplug rng device from qemu monitor
|
| test 1:
| guest) # dd if=/dev/hwrng of=/dev/null &
| hotunplug rng device from qemu monitor
|
| test 2:
|
2014 Sep 18
2
[PATCH 1/5] hw_random: place mutex around read functions and buffers.
There's currently a big lock around everything, and it means that we
can't query sysfs (eg /sys/devices/virtual/misc/hw_random/rng_current)
while the rng is reading. This is a real problem when the rng is slow,
or blocked (eg. virtio_rng with qemu's default /dev/random backend)
This doesn't help (it leaves the current lock untouched), just adds a
lock to protect the read function
2014 Dec 06
7
[PATCH v5 0/6] fix hw_random stuck
When I hotunplug a busy virtio-rng device or try to access
hwrng attributes in non-smp guest, it gets stuck.
My hotplug tests:
| test 0:
| hotunplug rng device from qemu monitor
|
| test 1:
| guest) # dd if=/dev/hwrng of=/dev/null &
| hotunplug rng device from qemu monitor
|
| test 2:
| guest) # dd if=/dev/random of=/dev/null &
| hotunplug rng device from qemu monitor
|
| test
2014 Dec 06
7
[PATCH v5 0/6] fix hw_random stuck
When I hotunplug a busy virtio-rng device or try to access
hwrng attributes in non-smp guest, it gets stuck.
My hotplug tests:
| test 0:
| hotunplug rng device from qemu monitor
|
| test 1:
| guest) # dd if=/dev/hwrng of=/dev/null &
| hotunplug rng device from qemu monitor
|
| test 2:
| guest) # dd if=/dev/random of=/dev/null &
| hotunplug rng device from qemu monitor
|
| test
2014 Sep 18
2
[PATCH v2 3/6] hw_random: use reference counts on each struct hwrng.
...return 0;
> }
>
> -static inline void hwrng_cleanup(struct hwrng *rng)
> -{
> - if (rng && rng->cleanup)
> - rng->cleanup(rng);
> -}
> -
> static int rng_dev_open(struct inode *inode, struct file *filp)
> {
> /* enforce read-only access to this chrdev */
> @@ -154,21 +202,22 @@ static ssize_t rng_dev_read(struct file *filp, char __user *buf,
> ssize_t ret = 0;
> int err = 0;
> int bytes_read, len;
> + struct hwrng *rng;
>
> while (size) {
> - if (mutex_lock_interruptible(&rng_mutex)) {
> - err = -EREST...
2014 Sep 18
2
[PATCH v2 3/6] hw_random: use reference counts on each struct hwrng.
...return 0;
> }
>
> -static inline void hwrng_cleanup(struct hwrng *rng)
> -{
> - if (rng && rng->cleanup)
> - rng->cleanup(rng);
> -}
> -
> static int rng_dev_open(struct inode *inode, struct file *filp)
> {
> /* enforce read-only access to this chrdev */
> @@ -154,21 +202,22 @@ static ssize_t rng_dev_read(struct file *filp, char __user *buf,
> ssize_t ret = 0;
> int err = 0;
> int bytes_read, len;
> + struct hwrng *rng;
>
> while (size) {
> - if (mutex_lock_interruptible(&rng_mutex)) {
> - err = -EREST...
2014 Sep 18
6
[PATCH v2 2/3] hw_random: fix stuck in catting hwrng attributes
Amos Kong <akong at redhat.com> writes:
> I started a QEMU (non-smp) guest with one virtio-rng device, and read
> random data from /dev/hwrng by dd:
>
> # dd if=/dev/hwrng of=/dev/null &
>
> In the same time, if I check hwrng attributes from sysfs by cat:
>
> # cat /sys/class/misc/hw_random/rng_*
>
> The cat process always gets stuck with slow backend (5
2014 Sep 18
6
[PATCH v2 2/3] hw_random: fix stuck in catting hwrng attributes
Amos Kong <akong at redhat.com> writes:
> I started a QEMU (non-smp) guest with one virtio-rng device, and read
> random data from /dev/hwrng by dd:
>
> # dd if=/dev/hwrng of=/dev/null &
>
> In the same time, if I check hwrng attributes from sysfs by cat:
>
> # cat /sys/class/misc/hw_random/rng_*
>
> The cat process always gets stuck with slow backend (5
2014 Dec 08
8
[PATCH v5 REPOST 0/6] fix hw_random stuck
When I hotunplug a busy virtio-rng device or try to access
hwrng attributes in non-smp guest, it gets stuck.
My hotplug tests:
| test 0:
| hotunplug rng device from qemu monitor
|
| test 1:
| guest) # dd if=/dev/hwrng of=/dev/null &
| hotunplug rng device from qemu monitor
|
| test 2:
| guest) # dd if=/dev/random of=/dev/null &
| hotunplug rng device from qemu monitor
|
| test