Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 03-07-2007, 08:59 AM   #1
LQ Newbie
Registered: Feb 2007
Posts: 8

Rep: Reputation: 0
Unhappy what is the kernel function called when a file is created

if u had seen the thread before i was searching an equivalent for dtrace.. i hav resolved to systemtap.. i am able to trace the systemcalls.. but when a file is created it doesnot call create system call..

one can probe kernel function in systemtap also.. any idea of what is the system call or kernel function called when a new file is created..
Old 03-07-2007, 09:55 AM   #2
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
If I understand your question correctly, I beleive it is the 'open()' call. If the specified file does not exist, it is created.
--- rod.
Old 03-08-2007, 06:09 AM   #3
LQ Newbie
Registered: Feb 2007
Posts: 8

Original Poster
Rep: Reputation: 0
ya,thats okay..
open() would work fine.. but is there any way to find that the file opened already exists or new one is created..
i would like to trace files that are created..


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
sleeping function called from invalid context kushneeraj Programming 8 04-16-2013 08:25 PM
howto know whether a function is called in signal handler snowing Programming 1 11-07-2005 09:55 PM
USB Driver Probe function not being called xtom Fedora 0 10-28-2005 03:48 PM
When a process locks up the system - what is the created image file called? thatgentleman Linux - General 3 03-22-2002 09:36 PM
in whst file is the main () function for the kernel? wsimmons Programming 2 12-30-2001 12:08 AM

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

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