LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 05-14-2013, 05:47 AM   #1
Binu
LQ Newbie
 
Registered: Apr 2013
Posts: 8

Rep: Reputation: Disabled
How to resolve path name in kernel space.


Hi ,
Am facing a proble while using realpath() in kernel space to solve the path name.
Like realpath() in userspace, is there any function in kernel space to solve the path name?

Thanks in Advance,
 
Old 05-16-2013, 01:51 AM   #2
bsat
Member
 
Registered: Feb 2009
Posts: 347

Rep: Reputation: 72
you can access the path of a file using the value

fs->path->dentry->d_name->name

see the post for more details

http://tuxthink.blogspot.in/2011/12/...t-working.html
 
Old 05-24-2013, 04:21 AM   #3
Binu
LQ Newbie
 
Registered: Apr 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bsat View Post
you can access the path of a file using the value

fs->path->dentry->d_name->name

see the post for more details

http://tuxthink.blogspot.in/2011/12/...t-working.html

Thanks bsat, it is quite helpful.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel Panic when netlink message is sent from User space to kernel space itrilok Programming 1 11-28-2012 10:56 AM
[SOLVED] quotacheck: can't resolve mount point path Zahir76 Linux - General 2 07-24-2010 09:53 PM
[SOLVED] file path contains space sumeet inani Linux - Newbie 3 03-02-2010 01:49 AM
Division of Logical Memory Space in to User Space and Kernel Space shreshtha Linux - Newbie 2 01-14-2010 09:59 AM
How to have a space in a path? xpucto Linux - Newbie 2 01-11-2008 07:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 12:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration