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 04-27-2015, 09:20 AM   #1
jimmyo
LQ Newbie
 
Registered: Sep 2014
Posts: 3

Rep: Reputation: Disabled
proc_mkdir and vfs_stat


Hello,

sometime we get an error in vfs_stat after checking for a exist Directory.

entry = proc_mkdir(PATH,NULL);
if (!entry)
return ErrorCode;

err = vfs_stat(PATH, stat);

proc_mkdir return a valid entry pointer.
but vfs_stat return -2.
But not always. sometime vfs_stat return 0 (ok).

we use Kernel 3.10.0 under x86

Thanks
 
  


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
proc_mkdir and vfs_stat jimmyo Linux - Kernel 1 04-27-2015 10:11 AM

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

All times are GMT -5. The time now is 07:31 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