From: Venu Byravarasu <vbyravarasu@nvidia.com>
To: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: question on devm_kfree
Date: Wed, 8 Aug 2012 11:26:34 +0530 [thread overview]
Message-ID: <5021FF92.8030904@nvidia.com> (raw)
As per comments related to devm_kzalloc, memory allocated using it is freed automatically.
However there is a function called devm_kfree, comment section of which says that it is used to free memory allocated using devm_kzalloc().
If memory allocated by devm_kzalloc is freed automatically, what's the need & significance of devm_kfree?
Thanks,
Venu
next reply other threads:[~2012-08-08 6:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-08 5:56 Venu Byravarasu [this message]
2012-08-08 6:30 ` question on devm_kfree Lars-Peter Clausen
2012-08-08 6:38 ` Venu Byravarasu
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=5021FF92.8030904@nvidia.com \
--to=vbyravarasu@nvidia.com \
--cc=linux-kernel@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.