Deleted Added
full compact
snp.c (46112) snp.c (46568)
1/*
2 * Copyright (c) 1995 Ugen J.S.Antsilevich
3 *
4 * Redistribution and use in source forms, with and without modification,
5 * are permitted provided that this entire comment appears intact.
6 *
7 * Redistribution in binary form may occur without any restrictions.
8 * Obviously, it would be nice if you gave credit where credit is due

--- 483 unchanged lines hidden (view full) ---

492 int revents = 0;
493
494
495 /*
496 * If snoop is down,we don't want to poll() forever so we return 1.
497 * Caller should see if we down via FIONREAD ioctl().The last should
498 * return -1 to indicate down state.
499 */
1/*
2 * Copyright (c) 1995 Ugen J.S.Antsilevich
3 *
4 * Redistribution and use in source forms, with and without modification,
5 * are permitted provided that this entire comment appears intact.
6 *
7 * Redistribution in binary form may occur without any restrictions.
8 * Obviously, it would be nice if you gave credit where credit is due

--- 483 unchanged lines hidden (view full) ---

492 int revents = 0;
493
494
495 /*
496 * If snoop is down,we don't want to poll() forever so we return 1.
497 * Caller should see if we down via FIONREAD ioctl().The last should
498 * return -1 to indicate down state.
499 */
500 if (events & (POLLIN | POLLRDNORM))
500 if (events & (POLLIN | POLLRDNORM)) {
501 if (snp->snp_flags & SNOOP_DOWN || snp->snp_len > 0)
502 revents |= events & (POLLIN | POLLRDNORM);
503 else
504 selrecord(p, &snp->snp_sel);
501 if (snp->snp_flags & SNOOP_DOWN || snp->snp_len > 0)
502 revents |= events & (POLLIN | POLLRDNORM);
503 else
504 selrecord(p, &snp->snp_sel);
505
505 }
506 return (revents);
507}
508
509#ifdef DEVFS
510static void *snp_devfs_token[NSNP];
511#endif
512static int snp_devsw_installed;
513

--- 28 unchanged lines hidden ---
506 return (revents);
507}
508
509#ifdef DEVFS
510static void *snp_devfs_token[NSNP];
511#endif
512static int snp_devsw_installed;
513

--- 28 unchanged lines hidden ---