LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 12-01-2009, 04:40 AM   #1
rasbambober
LQ Newbie
 
Registered: Sep 2009
Posts: 4

Rep: Reputation: 0
Having trouble registering a system call in ubuntu


hi all,

i have kernel hacking assignments as my operating systems course ...i am trying to register a simple system call on ubuntu that simply prints with kprint stmt

Code:
#include <linux/kernel.h>

asmlinkage long sys_cs2456_test(int arg0)
{
  printk(" Hello World !");
  printk("--syscall arg %d", arg0);

  return((long) arg0);
}
i register this call in the following files ... following their syntax strictly:

arch/x86/kernel/syscall_table_32.S
and
arch/x86/include/asm/unistd_32.h

i also update the Makefile for linux with the folder for my sys call ... when i make the kernel it generates the object file but when i test the system call in user space it gives me an error that my system call is not defined.

help!!!!!!!!!!!!!!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fail to implement system call in Ubuntu distribution. Kunsheng Programming 1 03-31-2009 11:15 PM
trouble registering my linux security module with the kernel nikhil86 Programming 0 03-12-2008 12:09 PM
Problem registering system liucxin Red Hat 1 09-10-2007 09:30 PM
trouble registering bearbigears Red Hat 3 05-17-2004 07:35 AM
Trouble registering username on red hat network Thaidog Red Hat 1 02-22-2004 11:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 11:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration