Find the answer to your Linux question:
Results 1 to 4 of 4
Hello everyone, I am trying to create a program which will create a directory using Linux Kernel. Any tipps or hints on how to do that ? thanks...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2006
    Posts
    7

    Create a directory using Linux kernel


    Hello everyone,

    I am trying to create a program which will create a directory using Linux Kernel.

    Any tipps or hints on how to do that ?

    thanks

  2. #2
    Linux Guru techieMoe's Avatar
    Join Date
    Aug 2004
    Location
    Texas
    Posts
    9,496
    Why do you need to use the kernel to let your program create a directory? Elaborate on this program of yours please.
    Registered Linux user #270181
    TechieMoe's Tech Rants

  3. #3
    Just Joined!
    Join Date
    Sep 2006
    Posts
    7
    Quote Originally Posted by techieMoe
    Why do you need to use the kernel to let your program create a directory? Elaborate on this program of yours please.
    This is an assignment from my lecturer.
    I am not asking somebody to solve it for myself.
    But if someone can give me a hint on how to do that I would be thankful

  4. #4
    Linux User fernape's Avatar
    Join Date
    Dec 2005
    Location
    Holland
    Posts
    301
    Take a look at sys_mkdir syscall:

    /usr/src/your_linux_source/fs/namei.c

    It's not a complex system call.

    Best Regards

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •