search for: handle_rng_input

Displaying 2 results from an estimated 2 matches for "handle_rng_input".

2007 Dec 21
0
[kvm-devel] [Virtio-for-kvm] [PATCH 2/13] [Mostly resend] virtio additions
...ootparam.h" /*L:110 We can ignore the 38 include files we need for this program, but I do @@ -1535,6 +1536,54 @@ static void setup_block_file(const char *filename) } /* That's the end of device setup. */ +/* This is the routine which handles console input (ie. stdin). */ +static bool handle_rng_input(int fd, struct device *dev) +{ + int len; + unsigned int head, in_num, out_num; + struct iovec iov[dev->vq->vring.num]; + + printf("Got input on rng fd!\n"); + /* First we need a buffer from the Guests's virtqueue. */ + head = get_vq_desc(dev->vq, iov, &...
2007 Dec 21
0
[kvm-devel] [Virtio-for-kvm] [PATCH 2/13] [Mostly resend] virtio additions
...ootparam.h" /*L:110 We can ignore the 38 include files we need for this program, but I do @@ -1535,6 +1536,54 @@ static void setup_block_file(const char *filename) } /* That's the end of device setup. */ +/* This is the routine which handles console input (ie. stdin). */ +static bool handle_rng_input(int fd, struct device *dev) +{ + int len; + unsigned int head, in_num, out_num; + struct iovec iov[dev->vq->vring.num]; + + printf("Got input on rng fd!\n"); + /* First we need a buffer from the Guests's virtqueue. */ + head = get_vq_desc(dev->vq, iov, &...