Kernel Programming: Finding the number of I/O requests


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Kernel Programming: Finding the number of I/O requests
# 1  
Old 06-07-2009
Kernel Programming: Finding the number of I/O requests

Hi

I'd like to know a logic or a strategy to count the number of I/O requests that are being made. I have the PID of the process for which this needed to be done. Does anyone have any clue as to how to do this? This is to be done in Kernel programming in C.

P.S:

This is to be done in linux 2.6.18...

Last edited by Ir1s; 06-07-2009 at 11:37 AM..
# 2  
Old 06-11-2009
I haven't ported my ancient utility to linux (yet), but a version of what you're interested in for the Mach microkernel as implemented in Tru64 AKA OSF/1 AKA Digital UNIX is available at ftp://raven.alaska.edu/pub/randy/per...sks-1.0.README and ftp://raven.alaska.edu/pub/randy/per...sks-1.0.tar.gz

Doubt that that helps, but it may give you an idea or two. Sorry I couldn't be of more help today.
# 3  
Old 06-11-2009
Do you want a count of pending I/O requests or completed I/0 requests for a process?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Ubuntu

Use of goto keyword in kernel programming

I have found many source files in the kernel using goto keyword instead of just doing the actual thing. For example: if(blah) goto x; -- -- -- -- -- x: return blah-blah Is there any specific reason for writing the code like this? The first thought that came to my mind is minimizing... (0 Replies)
Discussion started by: BHASKAR JUPUDI
0 Replies

2. UNIX for Advanced & Expert Users

Kernel programming sys_creat

Hi there At first. My Name is Andre, 27 and im from germany Im tryin to learn something about the Unix Kernel and System At first im trying to manipulate the systemcalls I want to have an Entry in the kernel logfile, whenever a new file is created. I found out, that a file uses the... (0 Replies)
Discussion started by: kissthechief
0 Replies

3. Programming

Kernel programming - Ext4 and extents contents

Hi there, I have a problem with Unix kernel programming. I have to write a program who should output the whole information the EXT4 extents contain. I have found many tutorial and information about how the EXT4 filesystem is working. Also There ar many information about the EXT4 structure but I... (1 Reply)
Discussion started by: oedurgan
1 Replies

4. Fedora

Newbie at Linux Kernel programming!

Hi Friends, This is my first ever post on this forum. I am a new user in the Linux field. Although, I have been working for sometime with CentOS at my work, I would consider myself an amateur only in this field. :D The way file system works in linux and the reason its open-source, has really... (7 Replies)
Discussion started by: rohitrajjain
7 Replies

5. SuSE

max number of slabs per kernel module (kernel 2.6.17, suse)

Hi All, Is there a max number of slabs that can be used per kernel module? I'm having a tough time finding out that kind of information, but the array 'node_zonelists' (mmzone.h) has a size of 5. I just want to avoid buffer overruns and other bad stuff. Cheers, Brendan (4 Replies)
Discussion started by: Brendan Kennedy
4 Replies

6. UNIX for Dummies Questions & Answers

find number of incoming requests to a server

How to find the number of incoming requests to a http server and the maximum requests it can serve? (1 Reply)
Discussion started by: laddu
1 Replies

7. Linux

kernel programming

:) Hi, I intend to learn kernel programming. Please, let me know if have know any good books for learning or any sites which will be help me. Thanks in advance. - masg (1 Reply)
Discussion started by: masg1
1 Replies

8. Linux

Kernel programming: packet divertion

Hi All, Not sure if this is the right place to ask, so please tell me where is appropriate... Anyway, here is the problem. I'm a bit new to kernel programming, so nothing works :confused: . I need to intercept cetrtain ethernet packets from Host1("eth0") to Host2("eth1") and send them to... (1 Reply)
Discussion started by: sl_king
1 Replies

9. Programming

To study kernel and modular programming

I want to do kernel programming.So which site or books help me in studying these.I know C programming to a little extent.Please advice me (4 Replies)
Discussion started by: ranjith
4 Replies

10. UNIX for Advanced & Expert Users

Kernel and Device Driver Programming

I am looking for a guide on how to program for either the Linux or FreeBSD (includes 4.4BSD, NetBSD or OpenBSD) kernel. I would prefer to learn how to write device drivers, but anything would help. If you know, please email me at *removed* or leave a post here Regards, Farhan (0 Replies)
Discussion started by: Farhan
0 Replies
Login or Register to Ask a Question