lkml.org 
[lkml]   [2004]   [Apr]   [22]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateThu, 22 Apr 2004 07:33:56 +0200
FromManfred Spraul <>
SubjectRe: [PATCH] per-user signal pending and message queue limits
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 14:02    [from the cache]
©2003-2008