>Unloading syscall kernel module can cause a system crash. It occurs when
>we
>unload the module while a process is executing our syscall. Example:
MOD_QUIESCE (sys/module.h) would be helping you in situations like that.
You can use a flag to rule that.
greetings,
rookie
On Wed, 22 Jun 2005 16:52:58 -0500
Dan Nelson <[EMAIL PROTECTED]> wrote:
> In the last episode (Jun 22), Mauser said:
> > Unloading syscall kernel module can cause a system crash. It occurs
> > when we unload the module while a process is executing our syscall.
> > Example:
> >
> > $ cat kldtest
In the last episode (Jun 22), Mauser said:
> Unloading syscall kernel module can cause a system crash. It occurs when we
> unload the module while a process is executing our syscall. Example:
>
> $ cat kldtest.c
...
> static int test_syscall(struct thread *td, void *arg) {
> struct timeval tv
i don't know if kld should check if the module is used or not before
unloading it.
but i should.
On 6/22/05, Mauser <[EMAIL PROTECTED]> wrote:
> Unloading syscall kernel module can cause a system crash. It occurs when we
> unload the module while a process is executing our syscall. Example:
>
>
Unloading syscall kernel module can cause a system crash. It occurs when we
unload the module while a process is executing our syscall. Example:
$ cat kldtest.c
#include
#include
#include
#include
#include
#include
#include
#include
#include
static int test_nw;
static int test_syscall
5 matches
Mail list logo