Sponsored Content
Top Forums UNIX for Advanced & Expert Users Kernel Programming: Finding the number of I/O requests Post 302324495 by rmh on Thursday 11th of June 2009 12:58:21 AM
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.
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
BLK_INIT_QUEUE(9)						   Block Devices						 BLK_INIT_QUEUE(9)

NAME
blk_init_queue - prepare a request queue for use with a block device SYNOPSIS
struct request_queue * blk_init_queue(request_fn_proc * rfn, spinlock_t * lock); ARGUMENTS
rfn The function to be called to process requests that have been placed on the queue. lock Request queue spin lock DESCRIPTION
If a block device wishes to use the standard request handling procedures, which sorts requests and coalesces adjacent requests, then it must call blk_init_queue. The function rfn will be called when there are requests on the queue that need to be processed. If the device supports plugging, then rfn may not be called immediately when requests are available on the queue, but may be called at some time later instead. Plugged queues are generally unplugged when a buffer belonging to one of the requests on the queue is needed, or due to memory pressure. rfn is not required, or even expected, to remove all requests off the queue, but only as many as it can handle at a time. If it does leave requests on the queue, it is responsible for arranging that the requests get dealt with eventually. The queue spin lock must be held while manipulating the requests on the request queue; this lock will be taken also from interrupt context, so irq disabling is needed for it. Function returns a pointer to the initialized request queue, or NULL if it didn't succeed. NOTE
blk_init_queue must be paired with a blk_cleanup_queue call when the block device is deactivated (such as at module unload). COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 BLK_INIT_QUEUE(9)
All times are GMT -4. The time now is 02:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy