LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   what is the kernel function called when a file is created (https://www.linuxquestions.org/questions/linux-general-1/what-is-the-kernel-function-called-when-a-file-is-created-535378/)

viv_nan 03-07-2007 08:59 AM

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..:scratch:

theNbomr 03-07-2007 09:55 AM

If I understand your question correctly, I beleive it is the 'open()' call. If the specified file does not exist, it is created.
--- rod.

viv_nan 03-08-2007 06:09 AM

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


All times are GMT -5. The time now is 12:31 PM.