Kernel programming sys_creat


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Kernel programming sys_creat
# 1  
Old 05-15-2012
Kernel programming sys_creat

Hi there

At first.
My Name is Andre, 27 and im from germany

Im tryin to learn something about the Unix Kernel and System

At first im trying to manipulate the systemcalls

I want to have an Entry in the kernel logfile, whenever a new file is created.

I found out, that a file uses the sys_creat function, to be created.
This function is referencing to the sys_open

But here is the point, where i dont get any further..

Where exactly can i find this function?

I hope that my english is good enough, that you can understand my problem Smilie

Andre

---------- Post updated at 08:05 AM ---------- Previous update was at 07:12 AM ----------

edit: It seems, that the function can be foun in fs/open.c?
line: 927
if (flags & O_CREAT) {
op->intent |= LOOKUP_CREATE;

i guess, here we have the point?
can someone explain that to me?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Ubuntu

Use of goto keyword in kernel programming

I have found many source files in the kernel using goto keyword instead of just doing the actual thing. For example: if(blah) goto x; -- -- -- -- -- x: return blah-blah Is there any specific reason for writing the code like this? The first thought that came to my mind is minimizing... (0 Replies)
Discussion started by: BHASKAR JUPUDI
0 Replies

2. Programming

Kernel programming - Ext4 and extents contents

Hi there, I have a problem with Unix kernel programming. I have to write a program who should output the whole information the EXT4 extents contain. I have found many tutorial and information about how the EXT4 filesystem is working. Also There ar many information about the EXT4 structure but I... (1 Reply)
Discussion started by: oedurgan
1 Replies

3. IP Networking

help implementing an ip filter in linux/net/socket.c (kernel programming)

hi there so, i was given an assignment: implement a linux system call that blocks all packets that are sent to a given IP (i have to do it without using iptables) i'm really new to kernel programming btw (and i'm enjoying it a lot) so, my syscall is called ip_block() and receives a... (1 Reply)
Discussion started by: lgfaria
1 Replies

4. Fedora

Newbie at Linux Kernel programming!

Hi Friends, This is my first ever post on this forum. I am a new user in the Linux field. Although, I have been working for sometime with CentOS at my work, I would consider myself an amateur only in this field. :D The way file system works in linux and the reason its open-source, has really... (7 Replies)
Discussion started by: rohitrajjain
7 Replies

5. UNIX for Advanced & Expert Users

Kernel Programming: Finding the number of I/O requests

Hi I'd like to know a logic or a strategy to count the number of I/O requests that are being made. I have the PID of the process for which this needed to be done. Does anyone have any clue as to how to do this? This is to be done in Kernel programming in C. P.S: This is to be done in... (2 Replies)
Discussion started by: Ir1s
2 Replies

6. UNIX for Advanced & Expert Users

Passing socket struct between kernel threads - module programming

I write kernel module with kernel threads using linux/kthread.h on 2.6.* kernel I tried to passing data between two kernel threads with data argument of kthread_run( fun, data , NAME ); but this is not work I dont know why. I tried many possibility and nothing works. So I thought that... (0 Replies)
Discussion started by: marcintom
0 Replies

7. Linux

kernel programming

:) Hi, I intend to learn kernel programming. Please, let me know if have know any good books for learning or any sites which will be help me. Thanks in advance. - masg (1 Reply)
Discussion started by: masg1
1 Replies

8. Linux

Kernel programming: packet divertion

Hi All, Not sure if this is the right place to ask, so please tell me where is appropriate... Anyway, here is the problem. I'm a bit new to kernel programming, so nothing works :confused: . I need to intercept cetrtain ethernet packets from Host1("eth0") to Host2("eth1") and send them to... (1 Reply)
Discussion started by: sl_king
1 Replies

9. Programming

To study kernel and modular programming

I want to do kernel programming.So which site or books help me in studying these.I know C programming to a little extent.Please advice me (4 Replies)
Discussion started by: ranjith
4 Replies

10. UNIX for Advanced & Expert Users

Kernel and Device Driver Programming

I am looking for a guide on how to program for either the Linux or FreeBSD (includes 4.4BSD, NetBSD or OpenBSD) kernel. I would prefer to learn how to write device drivers, but anything would help. If you know, please email me at *removed* or leave a post here Regards, Farhan (0 Replies)
Discussion started by: Farhan
0 Replies
Login or Register to Ask a Question
Biber::Entry::Name(3pm) 				User Contributed Perl Documentation				   Biber::Entry::Name(3pm)

NAME
Biber::Entry::Name - Biber::Entry::Name objects new Initialize a Biber::Entry::Name object, optionally with key=>value arguments. Ex: Biber::Entry::Name->new( lastname=>"Bolzmann", firstname=>"Anna Maria", prefix => "von" ) TO_JSON Serialiser for JSON::XS::encode notnull Test for an empty object was_stripped Return boolean to tell if the passed field had braces stripped from the original set_hash Set a hash for the name get_hash Get a hash for the name set_index Set a field telling what position in the name list the name is get_index Get the index of a Biber::Entry::Name object set_uniquename Set uniquename for a visible Biber::Entry::Name object Sets global flag to say that some uniquename value has changed set_uniquename_all Set uniquename for a Biber::Entry::Name object get_uniquename Get uniquename for a visible Biber::Entry::Name object get_uniquename_all Get uniquename for a Biber::Entry::Name object reset_uniquename Reset uniquename for a Biber::Entry::Name object set_minimal_info Set the string of lastnames and string of fullnames Used to track uniquename=5 or 6 get_minimal_info Get the name context used to track uniquename=5 or 6 get_namepart Get a namepart by passed name set_firstname Set firstname for a Biber::Entry::Name object get_firstname Get firstname for a Biber::Entry::Name object get_firstname_i Get firstname initials for a Biber::Entry::Name object set_middlename Set middlename for a Biber::Entry::Name object get_middlename Get middlename for a Biber::Entry::Name object get_middlename_i Get middlename initials for a Biber::Entry::Name object set_lastname Set lastname for a Biber::Entry::Name object get_lastname Get lastname for a Biber::Entry::Name object get_lastname_i Get lastname initials for a Biber::Entry::Name object set_suffix Set suffix for a Biber::Entry::Name object get_suffix Get suffix for a Biber::Entry::Name object get_suffix_i Get suffix initials for a Biber::Entry::Name object set_prefix Set prefix for a Biber::Entry::Name object get_prefix Get prefix for a Biber::Entry::Name object get_prefix_i Get prefix initials for a Biber::Entry::Name object set_gender Set gender for a Biber::Entry::Name object get_gender Get gender for a Biber::Entry::Name object set_namestring Set namestring for a Biber::Entry::Name object get_namestring Get namestring for a Biber::Entry::Name object set_nameinitstring Set nameinitstring for a Biber::Entry::Name object get_nameinitstring Get nameinitstring for a Biber::Entry::Name object name_to_bbl { Return bbl data for a name name_to_bltxml { Add BibLaTeXML for the name to an XML::Writer object dump Dump Biber::Entry::Name object AUTHORS
Francois Charette, "<firmicus at ankabut.net>" Philip Kime "<philip at kime.org.uk>" BUGS
Please report any bugs or feature requests on our sourceforge tracker at <https://sourceforge.net/tracker2/?func=browse&group_id=228270>. COPYRIGHT &; LICENSE Copyright 2009-2012 Francois Charette and Philip Kime, all rights reserved. This module is free software. You can redistribute it and/or modify it under the terms of the Artistic License 2.0. This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose. perl v5.14.2 2012-06-17 Biber::Entry::Name(3pm)