All of lore.kernel.org
 help / color / mirror / Atom feed
* Query about DSP_Close() function
@ 2009-03-30 16:52 Ameya Palande
  2009-03-30 18:16 ` Kanigeri, Hari
  0 siblings, 1 reply; 4+ messages in thread
From: Ameya Palande @ 2009-03-30 16:52 UTC (permalink / raw)
  To: Kanigeri, Hari; +Cc: Doyu Hiroshi, linux-omap@vger.kernel.org

Hi Hari,

I am trying to make sure that when an application closes a file handle
all the resources are freed properly.

I saw that DEV_CleanupProcessState() is never called.
I am not able to locate its definition :(
Is this code intentionally disabled/removed for some reason?

Cheers,
Ameya.

/*
 *  ======== DSP_Close ========
 *      The Calling Process handle is passed to DEV_CleanupProcesState
 *      for cleaning up of any resources used by the application
 */
bool DSP_Close(u32 dwOpenContext)
{
        bool retVal = false;

        DBC_Require(dwOpenContext != 0);

        GT_0trace(curTrace, GT_ENTER, "Entering DSP_Close\n");

#ifndef RES_CLEANUP_DISABLE

        if (DSP_SUCCEEDED(DEV_CleanupProcessState((HANDLE) dwOpenContext))) {
                //GT_0trace(curTrace, GT_1CLASS, "DSP_Close Succeeded \r\n");
                pr_emerg("DSP_Close Succeeded\n");
                retVal = true;
        } else {
                //GT_0trace(curTrace, GT_7CLASS, "DSP_Close failed \r\n");
                pr_emerg("DSP_Close failed\n");
        }
#endif

        return retVal;
}

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

end of thread, other threads:[~2009-03-30 18:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-30 16:52 Query about DSP_Close() function Ameya Palande
2009-03-30 18:16 ` Kanigeri, Hari
2009-03-30 18:44   ` Felipe Contreras
2009-03-30 18:55     ` Kanigeri, Hari

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.