<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML ><HEAD ><TITLE >Implementing a System Call on Linux 2.6 for i386</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="NEXT" TITLE="Introduction" HREF="x19.html"></HEAD ><BODY CLASS="article" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="ARTICLE" ><DIV CLASS="TITLEPAGE" ><H1 CLASS="title" ><A NAME="AEN2" ></A >Implementing a System Call on Linux 2.6 for i386</H1 ><H3 CLASS="author" ><A NAME="AEN4" >Amit Choudhary</A ></H3 ><DIV CLASS="affiliation" ><DIV CLASS="address" ><P CLASS="address" ><TT CLASS="email" ><<A HREF="mailto:amit2030 AT gmail DOT com" >amit2030 AT gmail DOT com</A >></TT ></P ></DIV ></DIV ><P CLASS="pubdate" >2006-10-27<BR></P ><DIV CLASS="revhistory" ><TABLE WIDTH="100%" BORDER="0" ><TR ><TH ALIGN="LEFT" VALIGN="TOP" COLSPAN="3" ><B >Revision History</B ></TH ></TR ><TR ><TD ALIGN="LEFT" >Revision 1.0</TD ><TD ALIGN="LEFT" >2006-10-27</TD ><TD ALIGN="LEFT" >Revised by: ac</TD ></TR ><TR ><TD ALIGN="LEFT" COLSPAN="3" >official release</TD ></TR ></TABLE ></DIV ><DIV ><DIV CLASS="abstract" ><A NAME="AEN17" ></A ><P ></P ><P > This HOWTO describes information about implementing system calls in the Linux operating system for i386 architecture with 2.6 kernels. General information about the used and modified files is available as well as description of the source and makefiles and test user space C program too. </P ><P ></P ></DIV ></DIV ><HR></DIV ><DIV CLASS="TOC" ><DL ><DT ><B >Table of Contents</B ></DT ><DT >1. <A HREF="x19.html" >Introduction</A ></DT ><DT >2. <A HREF="x22.html" >System call</A ></DT ><DT >3. <A HREF="x27.html" >List of files to be modified/created</A ></DT ><DT >4. <A HREF="x48.html" >Kernel files to be modified</A ></DT ><DT >5. <A HREF="x50.html" >syscall_table.S</A ></DT ><DT >6. <A HREF="x59.html" >unistd.h</A ></DT ><DT >7. <A HREF="x74.html" >syscalls.h</A ></DT ><DT >8. <A HREF="x82.html" >Makefile</A ></DT ><DT >9. <A HREF="x89.html" >New kernel files/directories to be created</A ></DT ><DT >10. <A HREF="x91.html" >mycall</A ></DT ><DT >11. <A HREF="x98.html" >mycall.c</A ></DT ><DT >12. <A HREF="x117.html" >Makefile</A ></DT ><DT >13. <A HREF="x125.html" >New user space files, to be created, to test our system call</A ></DT ><DT >14. <A HREF="x127.html" >testmycall.h (new user space header file to be created)</A ></DT ><DT >15. <A HREF="x156.html" >testmycall.c (new user space source file to be created)</A ></DT ><DT >16. <A HREF="x173.html" >_syscallN macro</A ></DT ><DT >17. <A HREF="x204.html" >Testing our new system call</A ></DT ><DT >18. <A HREF="x213.html" >Questions And Suggestions</A ></DT ><DT >19. <A HREF="x219.html" >Copyright</A ></DT ><DT >20. <A HREF="x228.html" >License</A ></DT ></DL ></DIV ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" > </TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" > </TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="x19.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" > </TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" > </TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >Introduction</TD ></TR ></TABLE ></DIV ></BODY ></HTML >