Displaying 5 results from an estimated 5 matches for "pfd0".
Did you mean:
pad0
2020 Aug 11
3
[PATCH v3] virtio-rng: return available data with O_NONBLOCK
...", O_RDONLY);
> if (fd == -1) {
> perror("open");
> return 1;
> };
> signal(SIGALRM, handler);
> alarm(SECONDS);
> loop(fd, SECONDS);
> close(fd);
> wait(NULL);
> return 0;
> }
>
> void loop(int fd)
> {
> struct pollfd pfd0 = { .fd = fd, .events = POLLIN, };
> int rc;
> unsigned int n;
>
> for (n = LOOPS; n > 0; n--) {
> struct pollfd pfd = pfd0;
> char buf[SIZE];
>
> rc = poll(&pfd, 1, 1);
> if...
2020 Aug 11
3
[PATCH v3] virtio-rng: return available data with O_NONBLOCK
...", O_RDONLY);
> if (fd == -1) {
> perror("open");
> return 1;
> };
> signal(SIGALRM, handler);
> alarm(SECONDS);
> loop(fd, SECONDS);
> close(fd);
> wait(NULL);
> return 0;
> }
>
> void loop(int fd)
> {
> struct pollfd pfd0 = { .fd = fd, .events = POLLIN, };
> int rc;
> unsigned int n;
>
> for (n = LOOPS; n > 0; n--) {
> struct pollfd pfd = pfd0;
> char buf[SIZE];
>
> rc = poll(&pfd, 1, 1);
> if...
2020 Aug 11
0
[PATCH v2] virtio-rng: return available data with O_NONBLOCK
...", O_RDONLY);
> if (fd == -1) {
> perror("open");
> return 1;
> };
> signal(SIGALRM, handler);
> alarm(SECONDS);
> loop(fd, SECONDS);
> close(fd);
> wait(NULL);
> return 0;
> }
>
> void loop(int fd)
> {
> struct pollfd pfd0 = { .fd = fd, .events = POLLIN, };
> int rc;
> unsigned int n;
>
> for (n = LOOPS; n > 0; n--) {
> struct pollfd pfd = pfd0;
> char buf[SIZE];
>
> rc = poll(&pfd, 1, 1);
> if...
2020 Aug 11
0
[PATCH v2] virtio-rng: return available data with O_NONBLOCK
...ror("open");
>> return 1;
>> };
>> signal(SIGALRM, handler);
>> alarm(SECONDS);
>> loop(fd, SECONDS);
>> close(fd);
>> wait(NULL);
>> return 0;
>> }
>>
>> void loop(int fd)
>> {
>> struct pollfd pfd0 = { .fd = fd, .events = POLLIN, };
>> int rc;
>> unsigned int n;
>>
>> for (n = LOOPS; n > 0; n--) {
>> struct pollfd pfd = pfd0;
>> char buf[SIZE];
>>
>> rc = poll(&pfd,...
2020 Aug 31
0
[PATCH v3] virtio-rng: return available data with O_NONBLOCK
...M, handler);
>>>> alarm(SECONDS);
>>>> loop(fd, SECONDS);
>>>> close(fd);
>>>> wait(NULL);
>>>> return 0;
>>>> }
>>>>
>>>> void loop(int fd)
>>>> {
>>>> struct pollfd pfd0 = { .fd = fd, .events = POLLIN, };
>>>> int rc;
>>>> unsigned int n;
>>>>
>>>> for (n = LOOPS; n > 0; n--) {
>>>> struct pollfd pfd = pfd0;
>>>> char buf[SIZE];
>&g...