Deleted Added
full compact
linsysfs.c (257179) linsysfs.c (283421)
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: head/sys/compat/linsysfs/linsysfs.c 257179 2013-10-26 18:18:50Z glebius $");
28__FBSDID("$FreeBSD: head/sys/compat/linsysfs/linsysfs.c 283421 2015-05-24 15:51:18Z dchagin $");
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/queue.h>
33#include <sys/blist.h>
34#include <sys/conf.h>
35#include <sys/exec.h>
36#include <sys/filedesc.h>

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

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

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

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

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

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

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

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