Oliver Neukum <[EMAIL PROTECTED]> wrote: > > (3) Even if it was... just filling in the syscall slot from a module means > > that it is possible for the module to be unloaded whilst the syscall is in > > use. > > > > David Howells > > The following scheme might work: > > On module load: INC_MOD_USE_COUNT > > In the module > > int handle_unload_preparation() > { > if (!suser()) > return -EPERM; > > lock_kernel(); > *call_table_entry = dummy_function; > wmb(); > unlock_kernel(); > > return 0; > } > > Regards > Oliver How does handle_unload_preparation() get invoked? And does lock_kernel() suppress syscall access? David Howells - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
- Re: [RFC] Wine speedup through kerne... Andi Kleen
- Re: [RFC] Wine speedup through ... David Howells
- Re: [RFC] Wine speedup thro... Horst von Brand
- Re: [RFC] Wine speedup thro... David Howells
- Re: Re: [RFC] Wine speedup through kernel module Bernhard Bender
- Re: [RFC] Wine speedup through kernel module J. Robert von Behren
- Re: [RFC] Wine speedup through kernel module David Howells
- Re: [RFC] Wine speedup through kernel module David Howells
- Re: [RFC] Wine speedup through kernel module David Howells
- Re: [RFC] Wine speedup through kernel module David Howells
- Re: [RFC] Wine speedup through kernel module David Howells
- Re: [RFC] Wine speedup through kernel module Linus Torvalds
- Re: [RFC] Wine speedup through kernel module Pavel Machek
- Re: [RFC] Wine speedup & "dynamic s... David Howells
- Re: [RFC] Wine speedup through kernel module David Howells
- Re: [RFC] Wine speedup through kernel module David Howells
- Re: [RFC] Wine speedup through kernel module David Howells
- Re: [RFC] Wine speedup through kernel module Albert D. Cahalan
- Re: [RFC] Wine speedup through kernel module David Howells
- Re: [RFC] Wine speedup through kernel module David Howells
- Re: [RFC] Wine speedup through kernel module David Howells