lkml.org 
[lkml]   [1997]   [Dec]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: delete_module and memory
> i want to create a temporary buffer the first time it's needed and
> have it automatically go away when the module gets unloaded. does
> delete_module automatically free kmalloced or other forms of memory?

Not automatically. However, cleanup_module gets called when the
module is removed, so you can check whether you allocated that memory
and release it if necessary.

Martin

\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.028 / U:0.444 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site