![]() | |||||||||||||
Messages in this thread |
Marcelo Tosatti wrote:
>I'm thinking about how to do the mqueue "kernel allocated memory" accounting,
>and I have a problem. A user can create an mqueue of given size via sys_mq_open()
>using "msg_attr" structure (will be created in do_create). I can account for how much
>memory has been allocated, but I can't at "deaccount" at kfree() time (this memory
>is stored in inode->(mqueue_inode_info *)info->messages), because I dont know how big
>it is (its user selectable via "msg_attr" structure).
>
>
Why not? mqueue_delete_inode can look at info->attr.mq_maxmsg and
info->attr.mq_curmsg.
--
Manfred
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
| ||||||||||||
| Last update: 2005-03-22 13:02 [from the cache] ©2003-2008 | |||||||||||||