Re: How to get the dentry value - no path_lookup

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

 



On Mon, 07 Sep 2015 12:10:56 +0530, Pria Mn said:

> return valid dentry value. My requirement is to fetch directory name from
> filepath.

First off, unless this is a class assignment, your *requirement* isn't
to fetch a directory name.

Fetching the directory name is a *solution* you're thinking of using for
a problem you're trying to solve.

So take a step back, and explain what you're trying to do, and why you thought
getting the directory name from filepath was a solution - it's quite
likely that you should be using some other API and approach entirely.

(I'd estimate that 75% of the "I can't get this API to work" questions
on the Linux kernel are because the person should be using a different API....)

Attachment: pgpGKnflYCMdr.pgp
Description: PGP signature

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux