LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

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

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


HELLO,
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
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,390
Blog Entries: 2

Rep: Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900
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
viv_nan
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..
thanks,
--vivek
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 05:05 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration