Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 10-05-2004, 08:24 AM   #1
LQ Newbie
Registered: May 2004
Location: Stuttgart, Germany
Distribution: Red Hat- 9.0
Posts: 10

Rep: Reputation: 0
Smile spinlock <-> IRQ Problem

Hi.. i hava an exam tomorrow...linux kernel and I can't figure out a logical problem. IRQ are handled on the Kernel Stack. It's about SMP.
Why can not be uded spinlocks in IRQ Routines? It involves the Stack Pointer...something about loosing its referene, but i coudn't figure it out...

A detailed answere about the problem and how it can be handeled (by saving the Stack pointer reference)would be my salvation

Thanks a lot and i hope the answere will come today, so that i can "rule" tomorrow.
Old 10-05-2004, 09:35 AM   #2
Registered: Mar 2003
Posts: 804

Rep: Reputation: 30
Uhh, spinlocks _are_ used in IRQ handlers, it's the only way to provide locking between an IRQ handler(s), and other kernel code.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
IRQ #18 Problem during Install EmmettHR Mandriva 5 04-11-2006 08:41 AM
'Spinlock' error when running xmms, mplayer coindood *BSD 1 09-27-2004 10:33 AM
IRQ problem with manderake 10 mmunro Mandriva 0 08-02-2004 10:52 PM
IRQ conflict problem mohanp Linux - Hardware 4 05-28-2004 12:07 PM
irq routing problem doralsoral Linux - Software 1 01-08-2004 04:30 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:17 AM.

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