The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
kernel call problem sasa UNIX for Advanced & Expert Users 1 04-13-2008 07:00 PM
how implement a kernel call? pedrosacosta UNIX for Advanced & Expert Users 1 02-11-2008 01:30 AM
max number of slabs per kernel module (kernel 2.6.17, suse) Brendan Kennedy Linux 4 01-23-2008 05:40 AM
Kernel panic - not syncing: cannot execute a PAE-enabled kernel on PAE-less CPU dave043 Linux 2 05-09-2007 10:57 PM
Making Socket System Call From Linux Kernel Module? mian_m_hamayun Linux 0 04-06-2005 06:34 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-04-2007
Registered User
 

Join Date: Jun 2007
Posts: 3
kernel-kernel call communication

hi all!
i have developed a mechanism in system.c to count how many times each kernel call is called. The results are held in an array in system.c . What i want to do is to create a new kernel call which will print this array. I need help in passing the array from system.c to the new kernel call.
how can this be done?
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 06-04-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
I suggest you indicate the operating system you intend a solution for.
Reply With Quote
  #3 (permalink)  
Old 06-04-2007
Registered User
 

Join Date: Jun 2007
Posts: 3
thanks for the reply, the operating system is minix.
Reply With Quote
  #4 (permalink)  
Old 06-04-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Is the array held within the kernel? Why not provide an API that returns a copy of the array to a user program which can then print it out? If so ioctl/read etc should provide examples of how to transfer data from the kernel to user memory space using a syscall.
Reply With Quote
  #5 (permalink)  
Old 06-04-2007
Registered User
 

Join Date: Jun 2007
Posts: 3
the array is held in the kernel and a kernel call do_XXXXX prints it out. these are the specifications.
Reply With Quote
  #6 (permalink)  
Old 06-05-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Quote:
Originally Posted by aureliano
these are the specifications.
Who made the specifications?
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:40 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0