Re: 答复: parent inode from the current struct inode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Hi Jack,

On Wed, Feb 8, 2012 at 2:00 PM, Jack David <jd6589@xxxxxxxxx> wrote:
> Okay, I tried container_of, but it did not work. So I tried
> d_obtain_alias() which worked.
> But I am not sure if I  have to make a call to dput() as well in order
> to free the dentry obtained.
> Anyone can confirm this?

since d_obtain_alias() calls dput when something goes wrong after
allocating the dentry, I'm assuming that you also have to call dput to
free the dentry.


Kernelnewbies mailing list

[Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Networking]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]

Add to Google Powered by Linux