General :: Blocking Or Sleeping An Interrupt Handler?

Dec 2, 2010

Assume: 1) Multi-cpu environment 2) Process that gets interrupted, is the same process that executes the interrupt handler, so I guess technically nothing gets interrupted except what the process was doing before, but it is still executing as it is executing the handler. 3) There is no top or bottom half, when an interrupt takes place the handler is invoked, executes, then return from interrupt, simple as that.

Why would sleeping the handler (puts in sleep queue, context switch to next runnable process) be a bad idea?

View 1 Replies


ADVERTISEMENT

Programming :: Panic - Killing Interrupt Handler - Not Syncing

May 10, 2010

I have written a Linux kernel module (in Linux 2.4, Red Hat 9) which does the followings: It takes srcIP, sourceport, destIP, destport and loadvalue as command line arguments. If configured load value is greater than 1, it creates different channels (i.e. No of UDP channels created equals to configured load value), assign different source port and destination port to different channels and send UDP datagram in different channels. Say for example the configured parameters are as follows srcIP=10.17.17.43 destIP= 10.17.17.44 sourceport=10000 destport= 20000 loadvalue=2.

Then it creates two UDP different channels and transmits UDP packets (in every 20 milliseconds) to destination IP address (i.e., 10.17.17.44) with source port 10000, destination port 20000 in one channel and source port 10002, destination port 20000 in another channel. When I configure to pass ?loadvalue=500? and run the module, I get the below kernel panic message in system log file (i.e., var/log/messages) 0>Kernel panic: Aiee, killing interrupt handler! In interrupt handler - not syncing. Running the same linux kernel module ,in 1000 loadvalue, I get this message, eth0: Out-of-sync dirty pointer, 49937 vs. 49954 in text console. I am unable to catch the root cause of these problems and how will I solve these?

View 1 Replies View Related

Programming :: Passing Data From Interrupt Handler Function To Tasklet Function?

May 18, 2010

I am doing some Linux kernel programming for my research project. I need to record the timestamp (by using cpuid and rdtsc) when an interrupt handler (top half) is first invoked. Due to the time critical nature of the problem itself, I have to do the timestamping inside the interrupt handler itself (the first operation when the handler is called). However, I understand that tasks that are not so time critical should be deferred to a tasklet function (bottom half) for processing because other interrupts are disabled in a (top-half) interrupt handler. I am currently out of idea on how I can pass the timestamp information that I have obtained in the interrupt handler to the corresponding tasklet function.

View 2 Replies View Related

General :: Possible To Interrupt The Boot Sequence?

Apr 30, 2010

Is there a way to interrupt the boot sequence, or execute it line by line? Alternatively, after a command has executed and the scree fills up, is there any way to "page up" on the screen?

View 1 Replies View Related

General :: Set Handler Php Without Panel?

Feb 23, 2010

How can I set the handler without panel?

like when it's set to dso without panel

and next my qus is :

where is mod_cgi.so in whm panel ? i want edit this file but i can not found this file

View 1 Replies View Related

General :: Mount Mp3 Player (sdb) Without Waking Up Sleeping Sda?

Jun 26, 2010

I would like to mount my mp3 player (sdb) without waking up the sleeping SATA disk sda. Attaching mp3 player does not wake sda up, but mounting it does. My system is mostly Slackware 11, so I'm still on kernel 2.4.

View 5 Replies View Related

General :: How To Measure Interrupt Latency Using C In System

Apr 22, 2010

Program code as how to measure interrupt latency..

View 2 Replies View Related

General :: RAID Disk Failure Interrupt Notification?

Apr 4, 2010

I have installed a Fedora Core 12 Linux system onto a RAID 1 file system. I now need a way of getting an notification if the disk fails. Is there an SNMP MIB that covers Intel RAID? I have done the searching but still the answer alludes me.

View 1 Replies View Related

General :: Cannot Interrupt Boot Sequence To Re-install Different Distro

Jan 3, 2011

I have a box with Novell Suse linux installed. It asks for username and password I do not have and cannot figure out. I also have a SantaFe distro CD with which I would like to replace the Suse on the box. I cannot get the box to BIOS to change the boot order to boot from CD. I would like to break free of Windows, but can't seem to get there from here...

View 5 Replies View Related

General :: Recover An Application In Sleeping State After An X Server Crash?

Jan 28, 2011

I often run calculations on my Linux computer, which cause my X server to crash from time to time. Almost always, some programs seem to survive to the crash and are in an interruptible sleeping state, for example:29315 ? Sl 54:35 /home/kashim/Desktop/anylogic/anylogic -vmargs -Xmx1024MIs there a way to reconnect these applications with the new X server?

View 1 Replies View Related

Programming :: C - For System Calls, Is Blocking Or Non-blocking Default?

Mar 23, 2010

For system calls, is blocking or non-blocking default in C? Simple question, just am not seeing the answer super quickly.

View 4 Replies View Related

General :: Select PHP Handler Module Per Virtual Host?

Oct 20, 2010

I would really like to install 2 or 3 PHP handler modules (suEXEC, FastCGI, etc) on a single server and assign which module should be used per virtual host or domain or whatever.

Is this possible?!
Could I get details?

View 1 Replies View Related

General :: Kernel Cooking: No Root Device Found Sleeping Forever?

May 3, 2011

I've taken the kernel 2.6.33.3 and edited the .config file to take out most of the compatibility etc. that I will not be using. I'm run the makes and updated grub. I go to boot it runs through most of the way until I get the following:Quote:/bin/plymouthd: symbol lookup error: /bin/plymouthd: undefined symbol:ply_chara could not read byte from child: SuccessNo root device foundBoot has failed, sleeping forever.'m fairly new to Linux and still more of a dabbler. (Though this seemed more difficult than "Who is root" so I didn't put this in the newbie thread.)Any ideas for what might be wrong?I've tried looking in the config file from something that relates, but they have all been included (Y) in the module.

View 2 Replies View Related

General :: Ifconfig Indicates Different Interrupt Number For Eth0 Than Proc Aqd Sys File System

Sep 22, 2011

On my system (OpenSUSE 11.4 - kernel 2.6.37) ifconfig indicates different interrupt number for eth0 than proc aqd sys file system.

ifconfig indicates 17:

proc fs indicates 43:

sys fs indicates 43:

Relevant part of lspci -vv output for irq 17 (this belongs to wlan0 and not to eth0):

Relevant part of lspci -vv output for irq 43:

View 1 Replies View Related

Programming :: Blocking And Non Blocking TCP Send/recv?

Dec 25, 2010

I have a device that is working on modbus protocol andI have written a small program(with block TCP read method ) to read its registers via modbus protocol.my program is working very well but except those times that I unplug the Ethernet cable or turning off the modbus gateway during programs work.at this time my program stops on recv system call (if it reach this system call exacly when I unplug Ethernet cable or turning off the modbus gateway during programs work).I changed my source to work in nonblock TCP method, at this time with the same situation my program does not stop/block on recv system call but after pluging back the Ethernet cable or resuming the connectivity situation back it reads data incorrectly .this is my code:Quote:

#define DEBUG
#include <fcntl.h>
#include <string.h>

[code]...

View 5 Replies View Related

General :: Create A Signal Handler Thread To Handle SIGALRM Signals?

Jan 19, 2010

I'm trying to create a signal handler thread to handle SIGALRM signals. The main thread calls the following function before creating any other threads

Code:

pthread_t Timer::Init(long _clock_interval_musec)
{
// Set interval.
clock_interval = _clock_interval_musec;
// This is called while in a single threaded environment.

[code]....

clock_interval is 50.

Is the timer not firing? Did I not set my interval correctly? Did I not proper block the signals ensuring the that the default handler would not take care of them?

View 7 Replies View Related

Programming :: How To Achieve Interrupt

Jul 30, 2011

How to achieve interrupts

any sources available apart from kernel code which show the usage of code...

View 2 Replies View Related

Ubuntu :: 10.4 - Computer Not Sleeping When Close Lid

May 1, 2010

I just installed ubuntu 10.4 and when I close my laptop, it does not go to sleep. The hard drive is still on and the computer is still working even after I have closed it.

View 9 Replies View Related

Ubuntu :: Lucid Is Sluggish After Sleeping?

Jun 9, 2010

Having woken her up, she is often very bleary eyed with no energy and little movement. It takes her quite a time to be fully functional. Are there any settings that reduce the time between waking up and full efficiency?

View 6 Replies View Related

Networking :: Wicd Has Connecting To New AP's After Sleeping?

Jul 6, 2011

I was using wicd on a spotty network, the house blocked a lot of the signal from moving around, so wicd was having major issues with that AP. Later I was trying to connect to another AP but wicd couldn't connect plus it was saying the spotty network's name was the one it was connecting to. Although I didn't try before I left/gave up I'm sure a restart of the wicd daemon would have solved it.

But why is this even the case? is there something I could add to the scripts that would clear this issue up? (I also submitted a bug on wicd's launchpad project but haven't gotten any response... I hope this isn't a 'feature')

View 3 Replies View Related

General :: Blocking Outgoing Ssh Using Iptables?

Aug 19, 2009

I want to block all the outgoing ssh form my machine, i.e my machine will not be able to ssh to any outside machine using iptables. The distro is RHEL, I added the following entry in the iptables but unfortunately it didnt worked, -A OUTPUT -p tcp -m tcp --dport 22 -j DROP

View 13 Replies View Related

General :: Blocking The Traffic Using Iptables?

Mar 17, 2010

i used the angry ip scan software and found alot of the public ip addresses on our network are accessable from outside when they are not suppose to, For eg printers/ pcs etc. to make a start on locking down the network i was wondering if anybody knew th iptables command to add a rule which blocked all incoming traffic to specific ip adresses on the network and to a range of ip addresses.

View 7 Replies View Related

Hardware :: IRQ / Interrupt Conflict With MegaRAID

Feb 3, 2010

Ever since Linux kernels beyond 2.6.24.3, I've been unable to boot my HP Netserver LH3. It gives a kernel panic with a variety of messages that always include
"common_interrupt+0x38/0x39"
I tried everything from updating the BIOS and firmware, to myriads of differing kernel configurations (at 4 hours per compile, imagine the agony).

I also tried booting with every combination of the kernel boot parameters acpi=off, noapic, nolapic, irqpoll, etc., that I could imagine. No dice. In final desperation, I began unplugging PCI cards one by one before finally disconnecting the SDLT drive from the Netraid SCSI. It seems that in later kernels or versions of udev, sharing the SCSI bus with the LH3 drives causes conflicts. I have an additional AHA SCSI card in the machine, so will try connecting the SDLT to that and see how it goes.

View 2 Replies View Related

Hardware :: Serial Port Interrupt

Jan 25, 2011

I need cause an interrupt on a serial port. If I put a single HIGH on the RX pin, will that cause one? I all ready use the 4 control lines for data.Hope I am making sense?

View 5 Replies View Related

Software :: Pty Handler Program ?

Dec 30, 2009

I'd like to propose the following program, which I might write if nothing like this already exists. It would be similar to the "script" program in that it will allocate a new pty/tty pair and start a new session. But unlike the "script" program, it will provide a means to have BOTH the normal terminal session going AND a script or input source to provide input. It could be used, for example, to pre-start programs inside the pty session, and at the end, let the controlling tty it was started in fully interact with it (something that can't happen if it was started with input piped from the script).

My design would allow running a control script right from the beginning, or at any later time. The control script can see output from the session, filter that output for the controlling tty to see, provide input, maybe even filter the controlling tty input, too. When the script ends, the session can remain for regular interaction. Also, an environment variable will be set in the session to allow programs inside the session to provide similar controls, such as feeding input. That environment variable might be a local port number to connect to, with an access key or encryption key, to provide input and/or control commands.

I have several uses for this. Many of those uses could be done using other tools, but not all the uses would hit the same tools. But by doing it all in a program like this, I see a great many of my uses all solved in a single project, even if it isn't the most elegant (but I see solving many problems with one solution as being its own kind of elegant).

View 1 Replies View Related

Ubuntu :: Eee904hd Sleeping Randomly / Solution For This?

Apr 30, 2010

Yesterday, I clean installed the netbook remix of 10.04 , all went well, until I removed the power cable.

While off mains the netbook will randomly sleep, I really can't seem to find a trigger for it.

In the power settings I have changed various options to alter this but nothing seems to affect this.

This machine had xp on previously without a similar problem, so I am ruling out a faulty lid trigger. (Doesn't happen with powered on mains)

View 2 Replies View Related

Ubuntu :: Prevent External Drive From Sleeping?

Aug 26, 2010

I have a Hitachi SimpleDrive (LS-1000-EMEA) it has an "Auto-sleep" function which I believe is controlled by the enclosure itself.The problem I'm having is that when the drive goes to sleep Ubuntu does not seem to be able to wake it up again. I am running Karmic 9.10 as a stripped down install with XBMC as a front-end. I cannot access the drive at all when it does this.

I'm not sure if the problem is that the drive is formatted as NTFS. I notice that when the drive is connected to my Mac or PC it resumes no problem (with a slight delay as the drive gets out of standby) but with Ubuntu it just seems to stop responding. When I reboot the drive is not mounted by Ubuntu. Physically, the blue LED indicator on the drive is frozen (i.e. lit-up) rather than flashing as it normally would. I have to actually unplug (from the mains) and plug it back in for it to work.I have tried using sdparm, but as I say I think the sleep function is controlled by the enclosure and thus sdparm gives me no standby options.

View 3 Replies View Related

General :: UPnP - Something Blocking Data Stream

Aug 4, 2010

I have a strange UPnP problem. I'm running myth tv and want to stream data to other things. How to troubleshoot UPnP because I have a feeling something somewhere is blocking it. I've tried doing a tcpdump eth0 host <mac of requesting agent> and not seen anything but ARP requests when I send it, but not when I ask it, just as normal traffic.

View 4 Replies View Related

General :: Blocking Countries From Accessing Server?

Jun 3, 2010

How can I block certain countries from accessing my server in any capacity? Is this possible? What do I need to add to my /etc/hosts.deny for this?

View 4 Replies View Related

General :: How To Change Mkahawa Blocking Image

Dec 23, 2010

i have been trying to change the default mkahawa blocking image without success because simply i cannot find the lockpix.gif directory they are talking about!! i also tried changing that through the server but the results still proved futile.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved