Deleted Added
full compact
subr_bus.c (160186) subr_bus.c (160964)
1/*-
2 * Copyright (c) 1997,1998,2003 Doug Rabson
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1997,1998,2003 Doug Rabson
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/kern/subr_bus.c 160186 2006-07-08 17:06:15Z imp $");
28__FBSDID("$FreeBSD: head/sys/kern/subr_bus.c 160964 2006-08-04 07:56:35Z yar $");
29
30#include "opt_bus.h"
31
32#include <sys/param.h>
33#include <sys/conf.h>
34#include <sys/filio.h>
35#include <sys/lock.h>
36#include <sys/kernel.h>

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

412 return (0);
413}
414
415/*
416 * The read channel for this device is used to report changes to
417 * userland in realtime. We are required to free the data as well as
418 * the n1 object because we allocate them separately. Also note that
419 * we return one record at a time. If you try to read this device a
29
30#include "opt_bus.h"
31
32#include <sys/param.h>
33#include <sys/conf.h>
34#include <sys/filio.h>
35#include <sys/lock.h>
36#include <sys/kernel.h>

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

412 return (0);
413}
414
415/*
416 * The read channel for this device is used to report changes to
417 * userland in realtime. We are required to free the data as well as
418 * the n1 object because we allocate them separately. Also note that
419 * we return one record at a time. If you try to read this device a
420 * character at a time, you will loose the rest of the data. Listening
420 * character at a time, you will lose the rest of the data. Listening
421 * programs are expected to cope.
422 */
423static int
424devread(struct cdev *dev, struct uio *uio, int ioflag)
425{
426 struct dev_event_info *n1;
427 int rv;
428

--- 3666 unchanged lines hidden ---
421 * programs are expected to cope.
422 */
423static int
424devread(struct cdev *dev, struct uio *uio, int ioflag)
425{
426 struct dev_event_info *n1;
427 int rv;
428

--- 3666 unchanged lines hidden ---