Thread: Linux kernel programming

  1. #1
    Registered User
    Join Date
    Oct 2011
    Location
    Bangalore, India, India
    Posts
    2

    Linux kernel programming

    Hi all,
    I m new to kernel programming. I am into block device drivers now.
    I have written a kernel module that does a mirroring action between 2 scsi disks. Its working fine.
    Now i want that module to be called from interrupt level using a system call.
    I Should write a user space program to create a system call that initiates my disk_copy.c

    I need some inputs.
    Please help.

    Thanks
    -Nakul Sargur

  2. #2
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    I've never done such a thing but have you looked at this:

    Implementing Linux System Calls | Linux Journal

    Alternatively, you could give your existing module some kind of /dev interface with a protocol for triggering events, and perhaps a userspace lib that implements the protocol.
    Last edited by MK27; 10-21-2011 at 07:42 AM.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Linux kernel
    By Annonymous in forum Linux Programming
    Replies: 15
    Last Post: 11-09-2011, 12:26 PM
  2. Linux Kernel I/O C programming
    By inferno_gogo in forum C Programming
    Replies: 11
    Last Post: 02-18-2009, 04:44 PM
  3. linux kernel module programming
    By open_engg in forum Linux Programming
    Replies: 2
    Last Post: 08-05-2007, 04:41 PM
  4. linux kernel module programming
    By circuit in forum Linux Programming
    Replies: 10
    Last Post: 12-01-2004, 06:08 PM
  5. linux kernel 2.5
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 07-31-2002, 11:17 PM