Hello,
I am working with the mbuff module but I have trouble with it since it
is sometimes impossible to remove it. This is due to the fact that the
module is still used as the lsmod command shows me. But why is it still
used ?
I use shm_allocate in the init_module and shm_deallocate in the
cleanup_module. The only one thing (according to me) that may cause
trouble is that casts are made while using shm_allocate and
shm_deallocate. Let's have a look at the following code :
[...]
static char * name_mem = "NAME_MEM";
static int size_mem = 1024*1024;
static char message[5];
[...]
int init_module(void)
{
[...]
shm_allocate(name_mem,size_mem,(void**)&message);
[...]
}
void cleanup_module(void)
{
[...]
shm_deallocate((void*)message);
[...]
}
It seems to me that shm_deallocate((void*)message) doesn't work
properly, because of the cast. But why ? The trouble may come from
somewhere else, but I have no idea.
Answers are welcome. Thank you for your help.
Sebastien
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/