The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 10:00 PM
how implement a kernel call? pedrosacosta UNIX for Advanced & Expert Users 1 02-11-2008 05:30 AM
max number of slabs per kernel module (kernel 2.6.17, suse) Brendan Kennedy SuSE 4 01-23-2008 09:40 AM
Kernel panic - not syncing: cannot execute a PAE-enabled kernel on PAE-less CPU dave043 Linux 2 05-10-2007 01:57 AM
Making Socket System Call From Linux Kernel Module? mian_m_hamayun Linux 0 04-06-2005 09:34 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-04-2007
aureliano aureliano is offline
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?
  #2 (permalink)  
Old 06-04-2007
porter porter is offline Forum Advisor  
Registered User
  
 

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

Join Date: Jun 2007
Posts: 3
thanks for the reply, the operating system is minix.
  #4 (permalink)  
Old 06-04-2007
porter porter is offline Forum Advisor  
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.
  #5 (permalink)  
Old 06-04-2007
aureliano aureliano is offline
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.
  #6 (permalink)  
Old 06-05-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
Quote:
Originally Posted by aureliano
these are the specifications.
Who made the specifications?
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:30 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0