aac.c (89316) | aac.c (89319) |
---|---|
1/*- 2 * Copyright (c) 2000 Michael Smith 3 * Copyright (c) 2001 Scott Long 4 * Copyright (c) 2000 BSDi 5 * Copyright (c) 2001 Adaptec, Inc. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * | 1/*- 2 * Copyright (c) 2000 Michael Smith 3 * Copyright (c) 2001 Scott Long 4 * Copyright (c) 2000 BSDi 5 * Copyright (c) 2001 Adaptec, Inc. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * |
29 * $FreeBSD: head/sys/dev/aac/aac.c 89316 2002-01-13 21:37:49Z alfred $ | 29 * $FreeBSD: head/sys/dev/aac/aac.c 89319 2002-01-14 00:13:45Z alfred $ |
30 */ 31 32/* 33 * Driver for the Adaptec 'FSA' family of PCI/SCSI RAID adapters. 34 */ 35 36#include "opt_aac.h" 37 --- 2539 unchanged lines hidden (view full) --- 2577aac_linux_ioctl(struct thread *td, struct linux_ioctl_args *args) 2578{ 2579 struct file *fp; 2580 u_long cmd; 2581 int error; 2582 2583 debug_called(2); 2584 | 30 */ 31 32/* 33 * Driver for the Adaptec 'FSA' family of PCI/SCSI RAID adapters. 34 */ 35 36#include "opt_aac.h" 37 --- 2539 unchanged lines hidden (view full) --- 2577aac_linux_ioctl(struct thread *td, struct linux_ioctl_args *args) 2578{ 2579 struct file *fp; 2580 u_long cmd; 2581 int error; 2582 2583 debug_called(2); 2584 |
2585 fp = ffind_hold(td, args->fd); 2586 if (fp == NULL) 2587 return (EBADF); | 2585 if ((error = fget(td, args->fd, &fp)) != 0) 2586 return (error); |
2588 cmd = args->cmd; 2589 2590 /* 2591 * Pass the ioctl off to our standard handler. 2592 */ 2593 error = (fo_ioctl(fp, cmd, (caddr_t)args->arg, td)); 2594 fdrop(fp, td); 2595 return (error); --- 166 unchanged lines hidden --- | 2587 cmd = args->cmd; 2588 2589 /* 2590 * Pass the ioctl off to our standard handler. 2591 */ 2592 error = (fo_ioctl(fp, cmd, (caddr_t)args->arg, td)); 2593 fdrop(fp, td); 2594 return (error); --- 166 unchanged lines hidden --- |