Deleted Added
full compact
linsysfs.c (256281) linsysfs.c (293527)
1/*-
2 * Copyright (c) 2006 IronPort Systems
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) 2006 IronPort Systems
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: stable/10/sys/compat/linsysfs/linsysfs.c 232278 2012-02-29 00:30:18Z mm $");
28__FBSDID("$FreeBSD: stable/10/sys/compat/linsysfs/linsysfs.c 293527 2016-01-09 16:08:22Z dchagin $");
29
30#include <sys/param.h>
31#include <sys/queue.h>
32#include <sys/blist.h>
33#include <sys/conf.h>
34#include <sys/exec.h>
35#include <sys/filedesc.h>
36#include <sys/kernel.h>

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

56#include <vm/pmap.h>
57#include <vm/vm_map.h>
58#include <vm/vm_param.h>
59#include <vm/vm_object.h>
60#include <vm/swap_pager.h>
61
62#include <machine/bus.h>
63
29
30#include <sys/param.h>
31#include <sys/queue.h>
32#include <sys/blist.h>
33#include <sys/conf.h>
34#include <sys/exec.h>
35#include <sys/filedesc.h>
36#include <sys/kernel.h>

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

56#include <vm/pmap.h>
57#include <vm/vm_map.h>
58#include <vm/vm_param.h>
59#include <vm/vm_object.h>
60#include <vm/swap_pager.h>
61
62#include <machine/bus.h>
63
64#include "opt_compat.h"
65#ifdef COMPAT_LINUX32 /* XXX */
66#include <machine/../linux32/linux.h>
67#else
68#include <machine/../linux/linux.h>
69#endif
70#include <compat/linux/linux_ioctl.h>
71#include <compat/linux/linux_mib.h>
72#include <compat/linux/linux_util.h>
73#include <fs/pseudofs/pseudofs.h>
74
75struct scsi_host_queue {
76 TAILQ_ENTRY(scsi_host_queue) scsi_host_next;
77 char *path;

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

276 free(scsi_host->path, M_TEMP);
277 free(scsi_host, M_TEMP);
278 }
279
280 return (0);
281}
282
283PSEUDOFS(linsysfs, 1, 0);
64#include <compat/linux/linux_ioctl.h>
65#include <compat/linux/linux_mib.h>
66#include <compat/linux/linux_util.h>
67#include <fs/pseudofs/pseudofs.h>
68
69struct scsi_host_queue {
70 TAILQ_ENTRY(scsi_host_queue) scsi_host_next;
71 char *path;

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

270 free(scsi_host->path, M_TEMP);
271 free(scsi_host, M_TEMP);
272 }
273
274 return (0);
275}
276
277PSEUDOFS(linsysfs, 1, 0);
278#if defined(__amd64__)
279MODULE_DEPEND(linsysfs, linux_common, 1, 1, 1);
280#else
284MODULE_DEPEND(linsysfs, linux, 1, 1, 1);
281MODULE_DEPEND(linsysfs, linux, 1, 1, 1);
282#endif