All of lore.kernel.org
 help / color / mirror / Atom feed
* hwmod and insertable modules
@ 2010-10-22  9:13 Premi, Sanjeev
  2010-10-22  9:21 ` Premi, Sanjeev
  2010-10-22  9:37 ` Nayak, Rajendra
  0 siblings, 2 replies; 9+ messages in thread
From: Premi, Sanjeev @ 2010-10-22  9:13 UTC (permalink / raw)
  To: linux-omap@vger.kernel.org

Hi all,

I was trying to use hwmod in one of the modules that user could choose
to insert via insmod.

During module_init I used omap_device_build() to create the omap_device.
But when trying to implement the module_exit, I couldn't find the
corresponding 'destructor'.

I do see 4 kzalloc()s being called for each omap_device_build(). I do
have a half-implemented destructor; but before I proceeded ahead I
wanted to pose few questions which can help undertand if I am on a
good track:

1) Is the omap_device supposed to be persistent? i.e. subsequent
   calls will return me the same device object?

2) Has someone else tried to to use omap_device and done multiple
   insmod and rmmod operations?

3) Is my fear of memory leak real? OR there is some magic behind
   omap_device_shutdown() that I haven't yet discovered? 

Best regards,
Sanjeev

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-10-22 16:59 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-22  9:13 hwmod and insertable modules Premi, Sanjeev
2010-10-22  9:21 ` Premi, Sanjeev
2010-10-22  9:37 ` Nayak, Rajendra
2010-10-22  9:41   ` Premi, Sanjeev
2010-10-22  9:43     ` Nishanth Menon
2010-10-22 10:01       ` Premi, Sanjeev
2010-10-22 10:26         ` Nishanth Menon
2010-10-22 12:17           ` Premi, Sanjeev
2010-10-22 16:59             ` Kevin Hilman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.