LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-27-2018, 10:50 AM   #1
htfones
LQ Newbie
 
Registered: Oct 2017
Distribution: ubuntu
Posts: 9

Rep: Reputation: Disabled
waiting at soft(ware)irq level


How to pend a request and wait gracefully for the I/o to complete when the request comes in with the request Q lock held (at software irq level)
(wait_event(_intr...) is not an option
 
Old 01-27-2018, 11:55 AM   #2
htfones
LQ Newbie
 
Registered: Oct 2017
Distribution: ubuntu
Posts: 9

Original Poster
Rep: Reputation: Disabled
Reply from thread originator

My confusion is based in my Windows mindset. Windows Knrl Driver Framework manages a sequential queue if requested and IRPs (requests) are automagically status_pending until completed. Just a 411.
In Linux it seems that I need to pull all reqs in the xxx_blkrequest function and tasklet_schedule
a task to process the whole set synchronously.
Any input is still appreciated.
Thanks in advance
 
Old 01-27-2018, 08:34 PM   #3
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Are you working on a program? Maybe you could give some context.
 
Old 01-27-2018, 08:55 PM   #4
htfones
LQ Newbie
 
Registered: Oct 2017
Distribution: ubuntu
Posts: 9

Original Poster
Rep: Reputation: Disabled
It's a kernel-mode block dev driver i am working on
 
Old 01-27-2018, 10:10 PM   #5
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
I think the kernel has an irq api for modules to use. I don't have the kernel docs on my lappy, but look in there
Code:
/usr/src/kernel-source/Documentation
Or, just look in the kernel source of a few block drivers. You should be able to figure it out. I'm not really sure exactly how to do it. Sorry.
 
1 members found this post helpful.
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
tv tuner card soft ware for ubandu nissarcalicut Linux - Newbie 1 02-15-2014 06:03 AM
where can I get non propitiatory soft ware ? kpanil Linux - Software 5 12-26-2012 05:47 AM
soft ware issue bigguy1337 Linux - Games 2 06-19-2011 02:22 PM
[SOLVED] Not-Quite-Soft-Ware soplin Linux - General 2 05-11-2007 06:47 AM
Soft Ware!!!! jhonny C Linux - Software 1 07-29-2005 06:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration