old-www/HOWTO/Implement-Sys-Call-Linux-2..../x27.html

175 lines
2.8 KiB
HTML
Raw Permalink Normal View History

2020-08-23 10:33:19 +00:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML
><HEAD
><TITLE
>List of files to be modified/created</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="Implementing a System Call on Linux 2.6 for i386"
HREF="index.html"><LINK
REL="PREVIOUS"
TITLE="System call"
HREF="x22.html"><LINK
REL="NEXT"
TITLE="Kernel files to be modified"
HREF="x48.html"></HEAD
><BODY
CLASS="sect1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Implementing a System Call on Linux 2.6 for i386</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="x22.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="x48.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="AEN27"
></A
>3. List of files to be modified/created</H1
><P
>Assume that your linux source base directory is /usr/src/linux.</P
><P
></P
><P
>Kernel files to be modified are listed below:</P
><P
></P
><P
>1. /usr/src/linux/arch/i386/kernel/syscall_table.S</P
><P
>2. /usr/src/linux/include/asm-i386/unistd.h</P
><P
>3. /usr/src/linux/include/linux/syscalls.h</P
><P
>4. /usr/src/linux/Makefile</P
><P
></P
><P
>New kernel files/directories to be created are listed below:</P
><P
></P
><P
>1. /usr/src/linux/mycall - Directory that will contain the source file, header file and the Makefile for our system call (You can also implement your system call in an existing file).</P
><P
>2. /usr/src/linux/mycall/mycall.c - Source file containing our system call code.</P
><P
>3. /usr/src/linux/mycall/Makefile - Makefile</P
><P
></P
><P
>New user space files, to be created, to test our system call are listed below:</P
><P
></P
><P
>1. testmycall.c Source file that will call our system call.</P
><P
>2. testmycall.h - Header file.</P
></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"
><A
HREF="x22.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="x48.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>System call</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Kernel files to be modified</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>