From owner-freebsd-hackers Fri May 15 09:50:38 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA26596 for freebsd-hackers-outgoing; Fri, 15 May 1998 09:50:38 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from eesun3.tamu.edu (eesun3.tamu.edu [165.91.218.12]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA26586 for ; Fri, 15 May 1998 09:50:22 -0700 (PDT) (envelope-from sumit@eesun3.tamu.edu) Received: (from sumit@localhost) by eesun3.tamu.edu (8.8.5/8.8.5) id LAA07873 for freebsd-hackers@freebsd.org; Fri, 15 May 1998 11:50:09 -0500 (CDT) From: Sumit Gupta Message-Id: <199805151650.LAA07873@eesun3.tamu.edu> Subject: how to add a system call To: freebsd-hackers@FreeBSD.ORG Date: Fri, 15 May 1998 11:50:08 -0500 (CDT) X-Mailer: ELM [version 2.4 PL24 PGP2] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, This is probably a newbie question. In FreeBSD Release 2.2.2., I have added a global array in the /usr/src/sys/netinet/ip_input.c which I use for some IP level hacking (array of u_long). right now I have harcoded the values in the array but need to have a way to change/set the array entries in a running system. Is a system call the only way to do this? If so, how do I add a new system call that can do this? Is assembly programming neccessary? any help will be greatly appreciated. thanks Sumit -- ----------------------------------------------------------------------- Sumit Gupta Masters Student Residence: Office: 4302, College Main Dept. of Elec. Engg. Apartment # 339 Texas A&M Univ. Bryan, Texas 77801 College Station, TX 77843 Ph : (409) 268-8053 Ph : (409) 845-9578 E-mail : sumit@tamu.edu Official URL : http://ee.tamu.edu/~sumit Personal URL : http://dropzone.tamu.edu/~sumit ----------------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message