12-03-2012
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I know that this is a relative question but can someone give me an idea of what would be considered a high number of context switches?
I am running vmstat and show a cs value of between 5000 and 6000 on a 4 processor system. How can I deduce if this number is high or not?
Also, the timeslice... (2 Replies)
Discussion started by: keelba
2 Replies
2. SCO
I want to do this:
stty intr ^C
While this works fine, how do I make this change permanetly to the whole system. Is there a defaults file for stty, or do I need to add something to my profile - this a) didn't work and b) I want it for all users.
Can someone please advise. I'm stuck! (1 Reply)
Discussion started by: satinet
1 Replies
3. Shell Programming and Scripting
hey champs,
I have a process running.......i have to catch/trap the signal when the process is being interupted/killed (kill -9 pid) option......
how can i achieve the same thru my process........
let my process is a.sh and it supposed to take 13 mins to complete, but due to some problem ,... (15 Replies)
Discussion started by: manas_ranjan
15 Replies
4. Shell Programming and Scripting
here is a data file.
-------------------------------------
KSH, CSH, BASH, PERL, PHP, SED, AWK
KSH, CSH, BASH, PERL, PHP,
BASH, PERL, PHP, SED, AWK
CSH, BASH, PERL, PHP, SED,
KSH, CSH, BASH, PERL, PHP, SED, AWK
-------------------------------------
My desired output is... (2 Replies)
Discussion started by: VTAWKVT
2 Replies
5. UNIX for Dummies Questions & Answers
Hi all,
I've got this question that i need to solve:
"Type `vmstat -s; vmstat -n 1 5; vmstat -n 1 5; vmstat
-s` to your Ruby interpreter. Then terminate your Ruby session. Run the Unix com-
mand vmstat -s; vmstat -n 1 5; vmstat -s in the same terminal window you had
been using for Ruby. Did... (1 Reply)
Discussion started by: snowboarder
1 Replies
6. Homework & Coursework Questions
Hi all,
I've got this question that i need to solve:
"Type `vmstat -s; vmstat -n 1 5; vmstat -n 1 5; vmstat
-s` to your Ruby interpreter. Then terminate your Ruby session. Run the Unix com-
mand vmstat -s; vmstat -n 1 5; vmstat -s in the same terminal window you had
been using for Ruby. Did... (1 Reply)
Discussion started by: snowboarder
1 Replies
7. Homework & Coursework Questions
1. The problem statement, all variables and given/known data:
Type `vmstat -s; vmstat -n 1 5; vmstat -n 1 5; vmstat
-s` to your Ruby interpreter. Then terminate your Ruby session. Run the Unix com-
mand vmstat -s; vmstat -n 1 5; vmstat -s in the same terminal window you had
been using for... (2 Replies)
Discussion started by: snowboarder
2 Replies
8. Linux
In a kernel based on 2.6.27:
In the schedule() routine they have a local variable switch_count:
/*
* schedule() is the main scheduler function.
*/
asmlinkage void __sched schedule(void)
{
struct task_struct *prev, *next;
unsigned long *switch_count;
struct rq... (2 Replies)
Discussion started by: chriskot
2 Replies
9. Shell Programming and Scripting
Trying to execute commands for different Unix user with that user's environment variable context without fully switching as that user using sudo && su capabilities.
Hoping this would help with security and not having to waste time switching between 10 different app users on same server.
I do... (6 Replies)
Discussion started by: kchinnam
6 Replies
10. Shell Programming and Scripting
I wrote this code, questions follow
#! /bin/bash -f
# Purpose - to show how if syntax is used within an awk
clear;
ls -l;
echo "This will print out the first two columns of the inputted file in this directory";
echo "Enter filename found in this directory";
read input;
... (11 Replies)
Discussion started by: Seth
11 Replies
LEARN ABOUT OPENSOLARIS
ddi_intr_get_hilevel_pri
ddi_intr_get_hilevel_pri(9F) Kernel Functions for Drivers ddi_intr_get_hilevel_pri(9F)
NAME
ddi_intr_get_hilevel_pri - get minimum priority level for a high-level interrupt
SYNOPSIS
#include <sys/types.h>
#include <sys/conf.h>
#include <sys/ddi.h>
#include <sys/sunddi.h>
int ddi_intr_get_hilevel_pri(void);
INTERFACE LEVEL
Solaris DDI specific (Solaris DDI).
DESCRIPTION
Upon a successful return, the ddi_intr_get_hilevel_pri() function returns the minimum priority level for a high-level interrupt. The return
priority value can be used to compare to other priority values, such as those returned from ddi_intr_get_pri(9F), to determine if a given
interrupt priority is a high-level interrupt.
High-level interrupts must be handled without using system services that manipulate thread or process states, because such interrupts are
not blocked by the scheduler.
In addition, high-level interrupt handlers must take care to do a minimum of work because they cannot be preempted.
A typical high-level interrupt handler puts data into a circular buffer and schedule a soft interrupt by calling ddi_intr_trigger_soft-
int(). The circular buffer can be protected by using a mutex that is properly initialized for the interrupt handler.
The ddi_intr_get_hilevel_pri() function can be used before calling ddi_intr_add_handler() to help determine which type of interrupt handler
can be used. Most device drivers are designed with the knowledge that supported devices always generate low level interrupts. On some
machines, however, interrupts are high-level above the scheduler level and on other machines they are not. Devices such as those those
using SBus interrupts or VME bus level 6 or 7 interrupts must use the ddi_intr_get_hilevel_pri() function to test the type of interrupt
handler that can be used.
RETURN VALUES
The ddi_intr_get_hilevel_pri() function returns the priority value for a high-level interrupt.
CONTEXT
The ddi_intr_get_hilevel_pri() function can be called from either user or kernel non-interrupt context.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Committed |
+-----------------------------+-----------------------------+
SEE ALSO
attributes(5), ddi_intr_add_handler(9F), ddi_intr_alloc(9F), ddi_intr_enable(9F), ddi_intr_get_pri(9F), ddi_intr_trigger_softint(9F),
mutex(9F)
Writing Device Drivers
SunOS 5.11 07 Apr 2005 ddi_intr_get_hilevel_pri(9F)