Deleted Added
full compact
kern_conf.c (166438) kern_conf.c (170152)
1/*-
2 * Copyright (c) 1999-2002 Poul-Henning Kamp
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) 1999-2002 Poul-Henning Kamp
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/kern_conf.c 166438 2007-02-02 22:27:45Z bms $");
28__FBSDID("$FreeBSD: head/sys/kern/kern_conf.c 170152 2007-05-31 11:51:53Z kib $");
29
30#include <sys/param.h>
31#include <sys/kernel.h>
32#include <sys/systm.h>
33#include <sys/bio.h>
34#include <sys/lock.h>
35#include <sys/mutex.h>
36#include <sys/module.h>

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

259 mtx_lock(&Giant);
260 retval = dev->si_devsw->d_gianttrick->
261 d_open(dev, oflags, devtype, td);
262 mtx_unlock(&Giant);
263 return (retval);
264}
265
266static int
29
30#include <sys/param.h>
31#include <sys/kernel.h>
32#include <sys/systm.h>
33#include <sys/bio.h>
34#include <sys/lock.h>
35#include <sys/mutex.h>
36#include <sys/module.h>

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

259 mtx_lock(&Giant);
260 retval = dev->si_devsw->d_gianttrick->
261 d_open(dev, oflags, devtype, td);
262 mtx_unlock(&Giant);
263 return (retval);
264}
265
266static int
267giant_fdopen(struct cdev *dev, int oflags, struct thread *td, int fdidx)
267giant_fdopen(struct cdev *dev, int oflags, struct thread *td, struct file *fp)
268{
269 int retval;
270
271 mtx_lock(&Giant);
272 retval = dev->si_devsw->d_gianttrick->
268{
269 int retval;
270
271 mtx_lock(&Giant);
272 retval = dev->si_devsw->d_gianttrick->
273 d_fdopen(dev, oflags, td, fdidx);
273 d_fdopen(dev, oflags, td, fp);
274 mtx_unlock(&Giant);
275 return (retval);
276}
277
278static int
279giant_close(struct cdev *dev, int fflag, int devtype, struct thread *td)
280{
281 int retval;

--- 626 unchanged lines hidden ---
274 mtx_unlock(&Giant);
275 return (retval);
276}
277
278static int
279giant_close(struct cdev *dev, int fflag, int devtype, struct thread *td)
280{
281 int retval;

--- 626 unchanged lines hidden ---