Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/src/linux_compat.c
Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Lines | |||||
#include <linux/sysfs.h> | #include <linux/sysfs.h> | ||||
#include <linux/mm.h> | #include <linux/mm.h> | ||||
#include <linux/io.h> | #include <linux/io.h> | ||||
#include <linux/vmalloc.h> | #include <linux/vmalloc.h> | ||||
#include <linux/netdevice.h> | #include <linux/netdevice.h> | ||||
#include <linux/timer.h> | #include <linux/timer.h> | ||||
#include <linux/interrupt.h> | #include <linux/interrupt.h> | ||||
#include <linux/uaccess.h> | #include <linux/uaccess.h> | ||||
#include <linux/utsname.h> | |||||
#include <linux/list.h> | #include <linux/list.h> | ||||
#include <linux/kthread.h> | #include <linux/kthread.h> | ||||
#include <linux/kernel.h> | #include <linux/kernel.h> | ||||
#include <linux/compat.h> | #include <linux/compat.h> | ||||
#include <linux/io-mapping.h> | #include <linux/io-mapping.h> | ||||
#include <linux/poll.h> | #include <linux/poll.h> | ||||
#include <linux/smp.h> | #include <linux/smp.h> | ||||
#include <linux/wait_bit.h> | #include <linux/wait_bit.h> | ||||
Show All 40 Lines | |||||
cpumask_t cpu_online_mask; | cpumask_t cpu_online_mask; | ||||
static cpumask_t static_single_cpu_mask[MAXCPU]; | static cpumask_t static_single_cpu_mask[MAXCPU]; | ||||
struct kobject linux_class_root; | struct kobject linux_class_root; | ||||
struct device linux_root_device; | struct device linux_root_device; | ||||
struct class linux_class_misc; | struct class linux_class_misc; | ||||
struct list_head pci_drivers; | struct list_head pci_drivers; | ||||
struct list_head pci_devices; | struct list_head pci_devices; | ||||
spinlock_t pci_lock; | spinlock_t pci_lock; | ||||
struct uts_namespace init_uts_ns; | |||||
unsigned long linux_timer_hz_mask; | unsigned long linux_timer_hz_mask; | ||||
wait_queue_head_t linux_bit_waitq; | wait_queue_head_t linux_bit_waitq; | ||||
wait_queue_head_t linux_var_waitq; | wait_queue_head_t linux_var_waitq; | ||||
int | int | ||||
panic_cmp(struct rb_node *one, struct rb_node *two) | panic_cmp(struct rb_node *one, struct rb_node *two) | ||||
▲ Show 20 Lines • Show All 2,658 Lines • ▼ Show 20 Lines | #endif | ||||
* Generate a single-CPU cpumask_t for each CPU (possibly) in the system. | * Generate a single-CPU cpumask_t for each CPU (possibly) in the system. | ||||
* CPUs are indexed from 0..(MAXCPU-1). The entry for cpuid 0 will only | * CPUs are indexed from 0..(MAXCPU-1). The entry for cpuid 0 will only | ||||
* have itself in the cpumask, cupid 1 only itself on entry 1, and so on. | * have itself in the cpumask, cupid 1 only itself on entry 1, and so on. | ||||
* This is used by cpumask_of() (and possibly others in the future) for, | * This is used by cpumask_of() (and possibly others in the future) for, | ||||
* e.g., drivers to pass hints to irq_set_affinity_hint(). | * e.g., drivers to pass hints to irq_set_affinity_hint(). | ||||
*/ | */ | ||||
for (i = 0; i < MAXCPU; i++) | for (i = 0; i < MAXCPU; i++) | ||||
CPU_SET(i, &static_single_cpu_mask[i]); | CPU_SET(i, &static_single_cpu_mask[i]); | ||||
strlcpy(init_uts_ns.name.release, osrelease, sizeof(init_uts_ns.name.release)); | |||||
} | } | ||||
SYSINIT(linux_compat, SI_SUB_DRIVERS, SI_ORDER_SECOND, linux_compat_init, NULL); | SYSINIT(linux_compat, SI_SUB_DRIVERS, SI_ORDER_SECOND, linux_compat_init, NULL); | ||||
static void | static void | ||||
linux_compat_uninit(void *arg) | linux_compat_uninit(void *arg) | ||||
{ | { | ||||
linux_kobject_kfree_name(&linux_class_root); | linux_kobject_kfree_name(&linux_class_root); | ||||
linux_kobject_kfree_name(&linux_root_device.kobj); | linux_kobject_kfree_name(&linux_root_device.kobj); | ||||
Show All 15 Lines |