Changeset View
Changeset View
Standalone View
Standalone View
share/examples/kld/syscall/module/syscall.c
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | hello(struct thread *td, void *arg) | ||||
printf("hello kernel\n"); | printf("hello kernel\n"); | ||||
return (0); | return (0); | ||||
} | } | ||||
/* | /* | ||||
* The `sysent' for the new syscall | * The `sysent' for the new syscall | ||||
*/ | */ | ||||
static struct sysent hello_sysent = { | static struct sysent hello_sysent = { | ||||
0, /* sy_narg */ | .sy_narg = 0, | ||||
hello /* sy_call */ | .sy_call = hello | ||||
}; | }; | ||||
jilles: The comments are now redundant. | |||||
/* | /* | ||||
* The offset in sysent where the syscall is allocated. | * The offset in sysent where the syscall is allocated. | ||||
*/ | */ | ||||
static int offset = NO_SYSCALL; | static int offset = NO_SYSCALL; | ||||
/* | /* | ||||
* The function called at load/unload. | * The function called at load/unload. | ||||
Show All 21 Lines |
The comments are now redundant.