47 static int pset(int, long, long, long, long);
48
49 static struct sysent pset_sysent = {
50 5,
51 SE_ARGC | SE_NOUNLOAD,
52 (int (*)())pset,
53 };
54
55 static struct modlsys modlsys = {
56 &mod_syscallops, "processor sets", &pset_sysent
57 };
58
59 #ifdef _SYSCALL32_IMPL
60 static struct modlsys modlsys32 = {
61 &mod_syscallops32, "32-bit pset(2) syscall", &pset_sysent
62 };
63 #endif
64
65 static struct modlinkage modlinkage = {
66 MODREV_1,
67 &modlsys,
68 #ifdef _SYSCALL32_IMPL
69 &modlsys32,
70 #endif
71 NULL
72 };
73
74 #define PSET_BADATTR(attr) ((~PSET_NOESCAPE) & (attr))
75
76 int
77 _init(void)
78 {
79 return (mod_install(&modlinkage));
80 }
81
82 int
83 _info(struct modinfo *modinfop)
84 {
85 return (mod_info(&modlinkage, modinfop));
86 }
87
88 static int
89 pset_create(psetid_t *psetp)
90 {
91 psetid_t newpset;
|
47 static int pset(int, long, long, long, long);
48
49 static struct sysent pset_sysent = {
50 5,
51 SE_ARGC | SE_NOUNLOAD,
52 (int (*)())pset,
53 };
54
55 static struct modlsys modlsys = {
56 &mod_syscallops, "processor sets", &pset_sysent
57 };
58
59 #ifdef _SYSCALL32_IMPL
60 static struct modlsys modlsys32 = {
61 &mod_syscallops32, "32-bit pset(2) syscall", &pset_sysent
62 };
63 #endif
64
65 static struct modlinkage modlinkage = {
66 MODREV_1,
67 { &modlsys,
68 #ifdef _SYSCALL32_IMPL
69 &modlsys32,
70 #endif
71 NULL
72 }
73 };
74
75 #define PSET_BADATTR(attr) ((~PSET_NOESCAPE) & (attr))
76
77 int
78 _init(void)
79 {
80 return (mod_install(&modlinkage));
81 }
82
83 int
84 _info(struct modinfo *modinfop)
85 {
86 return (mod_info(&modlinkage, modinfop));
87 }
88
89 static int
90 pset_create(psetid_t *psetp)
91 {
92 psetid_t newpset;
|