Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7784671
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T20:07:56+00:00 2026-06-01T20:07:56+00:00

How to check in linux kernel at vfs layer whether the file object is

  • 0

How to check in linux kernel at vfs layer whether the file object is for a directory or a file?

I have found that there is a function called is_dx(dir) which checks for this but it is present in namei.c in ext3 or ext4. I need to do this at vfs layer that is independent of the file system.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T20:07:56+00:00Added an answer on June 1, 2026 at 8:07 pm

    Having in hand the inode of the initial directory, the code

    examines the entry matching the first name to get the

    corresponding inode.

    q Then the directory file having that node is read from disk and

    the entry matching the second name is examined to derive the

    corresponding inode.

    q This procedure is repeated for each name included in the path.

    The dentry cache considerably speeds up the procedure

    File system operations are mostly done at the dcache level , so

    they are all under kernel lock.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a binary file in linux. How can I check whether it has
I know that I can check whether the linux timestamp in $time is today
Is there an API function on Linux (kernel 2.6.20) which can be used to
I want to check in linux bash whether a file was created more than
I have created local linux kernel git repository from which I want to check
I want to check the list of symbol exported by the Linux kernel. So
I need to monitor folders on my linux machine periodically to check whether they
I am creating a kernel module for linux. I need it to check how
What Linux command allow me to check if all the lines in file A
I'm writing a linux kernel module that makes use of the exported symbol open_exec

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.