From: Ameya Palande <ameya.palande@nokia.com>
To: "Kanigeri, Hari" <h-kanigeri2@ti.com>
Cc: Doyu Hiroshi <hiroshi.doyu@nokia.com>,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Query about DSP_Close() function
Date: Mon, 30 Mar 2009 19:52:42 +0300 [thread overview]
Message-ID: <49D0F8DA.4060900@nokia.com> (raw)
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;
}
next reply other threads:[~2009-03-30 16:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-30 16:52 Ameya Palande [this message]
2009-03-30 18:16 ` Query about DSP_Close() function Kanigeri, Hari
2009-03-30 18:44 ` Felipe Contreras
2009-03-30 18:55 ` Kanigeri, Hari
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49D0F8DA.4060900@nokia.com \
--to=ameya.palande@nokia.com \
--cc=h-kanigeri2@ti.com \
--cc=hiroshi.doyu@nokia.com \
--cc=linux-omap@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.