LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   proc_mkdir and vfs_stat (https://www.linuxquestions.org/questions/linux-kernel-70/proc_mkdir-and-vfs_stat-4175540885/)

jimmyo 04-27-2015 09:19 AM

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).

jeremy 04-27-2015 10:11 AM

Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.


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