Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linsysfs/linsysfs.c
Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Lines | |||||
#include <vm/pmap.h> | #include <vm/pmap.h> | ||||
#include <vm/vm_map.h> | #include <vm/vm_map.h> | ||||
#include <vm/vm_param.h> | #include <vm/vm_param.h> | ||||
#include <vm/vm_object.h> | #include <vm/vm_object.h> | ||||
#include <vm/swap_pager.h> | #include <vm/swap_pager.h> | ||||
#include <machine/bus.h> | #include <machine/bus.h> | ||||
#include "opt_compat.h" | |||||
#ifdef COMPAT_LINUX32 /* XXX */ | |||||
#include <machine/../linux32/linux.h> | |||||
#else | |||||
#include <machine/../linux/linux.h> | |||||
#endif | |||||
#include <compat/linux/linux_ioctl.h> | #include <compat/linux/linux_ioctl.h> | ||||
#include <compat/linux/linux_mib.h> | #include <compat/linux/linux_mib.h> | ||||
#include <compat/linux/linux_util.h> | #include <compat/linux/linux_util.h> | ||||
#include <fs/pseudofs/pseudofs.h> | #include <fs/pseudofs/pseudofs.h> | ||||
struct scsi_host_queue { | struct scsi_host_queue { | ||||
TAILQ_ENTRY(scsi_host_queue) scsi_host_next; | TAILQ_ENTRY(scsi_host_queue) scsi_host_next; | ||||
char *path; | char *path; | ||||
▲ Show 20 Lines • Show All 198 Lines • ▼ Show 20 Lines | TAILQ_FOREACH_SAFE(scsi_host, &scsi_host_q, scsi_host_next, | ||||
free(scsi_host->path, M_TEMP); | free(scsi_host->path, M_TEMP); | ||||
free(scsi_host, M_TEMP); | free(scsi_host, M_TEMP); | ||||
} | } | ||||
return (0); | return (0); | ||||
} | } | ||||
PSEUDOFS(linsysfs, 1, 0); | PSEUDOFS(linsysfs, 1, 0); | ||||
#if defined(__amd64__) | |||||
MODULE_DEPEND(linsysfs, linux_common, 1, 1, 1); | |||||
#else | |||||
MODULE_DEPEND(linsysfs, linux, 1, 1, 1); | MODULE_DEPEND(linsysfs, linux, 1, 1, 1); | ||||
#endif |