Changeset View
Changeset View
Standalone View
Standalone View
sys/contrib/openzfs/include/os/freebsd/spl/sys/proc.h
Show All 35 Lines | |||||
#include <sys/smp.h> | #include <sys/smp.h> | ||||
#include <sys/sched.h> | #include <sys/sched.h> | ||||
#include <sys/lock.h> | #include <sys/lock.h> | ||||
#include <sys/mutex.h> | #include <sys/mutex.h> | ||||
#include <sys/unistd.h> | #include <sys/unistd.h> | ||||
#include <sys/kmem.h> | #include <sys/kmem.h> | ||||
#include <sys/malloc.h> | #include <sys/malloc.h> | ||||
#ifdef _KERNEL | |||||
#define CPU curcpu | #define CPU curcpu | ||||
#define minclsyspri PRIBIO | #define minclsyspri PRIBIO | ||||
#define defclsyspri minclsyspri | #define defclsyspri minclsyspri | ||||
#define maxclsyspri PVM | #define maxclsyspri PVM | ||||
#define max_ncpus (mp_maxid + 1) | #define max_ncpus (mp_maxid + 1) | ||||
#define boot_max_ncpus (mp_maxid + 1) | #define boot_max_ncpus (mp_maxid + 1) | ||||
#define TS_RUN 0 | #define TS_RUN 0 | ||||
▲ Show 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | |||||
int uwrite(proc_t *, void *, size_t, uintptr_t); | int uwrite(proc_t *, void *, size_t, uintptr_t); | ||||
static inline boolean_t | static inline boolean_t | ||||
zfs_proc_is_caller(proc_t *p) | zfs_proc_is_caller(proc_t *p) | ||||
{ | { | ||||
return (p == curproc); | return (p == curproc); | ||||
} | } | ||||
#endif /* _KERNEL */ | |||||
#endif /* _OPENSOLARIS_SYS_PROC_H_ */ | #endif /* _OPENSOLARIS_SYS_PROC_H_ */ |