03-03-2009
I cant guarantee you on that. But definitely you need to try.
![Embarrassment Smilie](https://www.unix.com/images/smilies/redface.gif)
8 More Discussions You Might Find Interesting
1. Programming
Can anybody tell me what a user frame & stack looks like on a sun, hp, powerpc system? (0 Replies)
Discussion started by: John Budnik
0 Replies
2. Shell Programming and Scripting
Hi,
I am trying to set the environment for my oracle database. I have 5 database in an unix box. My idea is to create 5 files for each database with the following script on it.
After logging into the unix box ...just by typing the database name....the enviornment for the database... (2 Replies)
Discussion started by: castlerock
2 Replies
3. Solaris
Hi, all,
I need to add a user to our system in order to let him use Oracle and Perl. We want him to remain in his home directory and have no access to our data and other users' files.
I created a separate group for this user, and set his shell to rksh when I created his account, by which he... (2 Replies)
Discussion started by: alanlh
2 Replies
4. Programming
I need to know what is the maximum stack size i.e. -Xss my java program is running with.
Is there a way to find that out from inside my java program code and outside of it.
What i am looking for is to read whatever the current set max limit -Xss (stack sie) is for a particular JVM(not... (3 Replies)
Discussion started by: mohtashims
3 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I am new to the linux kernel development area. I want to know what is the difference between kernel mode stack and user mode stack? Does each process has a user mode stack and a kernel mode stack?? Or Each process has a user mode stack and there is only one kernel mode stack that is shared by... (4 Replies)
Discussion started by: saurabhkoar
4 Replies
6. Shell Programming and Scripting
I need to connect my Oracle 11g DB from shell script with 'sysdba' permissions. To do this I have to switch user from 'root' to 'oracle'.
I've tried the following with no success.
su - oracle -c "<< EOF1
sqlplus -s "/ as sysdba" << EOF2
whenever sqlerror exit sql.sqlcode;... (2 Replies)
Discussion started by: NetBear
2 Replies
7. UNIX for Dummies Questions & Answers
I have a multithreaded usermode program(actually a daemon) which is in hanged state.
To debug it I tried attaching the process to gdb, but the gdb hangs.
gstack also gets hanged.
I peeped into the proc file system and saw the process to be in sleeping state.
/proc/sysrq-trigger I guess... (1 Reply)
Discussion started by: rupeshkp728
1 Replies
8. Red Hat
Hi Guys,
I'm trying to install Oracle Database on to Oracle Linux 7.6 but when
the database install package checks the OS set-up, it keeps on failing
on the soft limits for the stack. It's default value is 8192 but I'm trying
to set it to 10240.
This is what I added to... (2 Replies)
Discussion started by: ASGR
2 Replies
LEARN ABOUT OPENSOLARIS
ddi_enter_critical
ddi_enter_critical(9F) Kernel Functions for Drivers ddi_enter_critical(9F)
NAME
ddi_enter_critical, ddi_exit_critical - enter and exit a critical region of control
SYNOPSIS
#include <sys/conf.h>
#include <sys/ddi.h>
#include <sys/sunddi.h>
unsigned int ddi_enter_critical(void);
void ddi_exit_critical(unsignedint ddic);
INTERFACE LEVEL
Solaris DDI specific (Solaris DDI).
PARAMETERS
ddic The returned value from the call to ddi_enter_critical() must be passed to ddi_exit_critical().
DESCRIPTION
Nearly all driver operations can be done without any special synchronization and protection mechanisms beyond those provided by, for exam-
ple, mutexes (see mutex(9F)). However, for certain devices there can exist a very short critical region of code which must be allowed to
run uninterrupted. The function ddi_enter_critical() provides a mechanism by which a driver can ask the system to guarantee to the best of
its ability that the current thread of execution will neither be preempted nor interrupted. This stays in effect until a bracketing call to
ddi_exit_critical() is made (with an argument which was the returned value from ddi_enter_critical()).
The driver may not call any functions external to itself in between the time it calls ddi_enter_critical() and the time it calls
ddi_exit_critical().
RETURN VALUES
The ddi_enter_critical() function returns an opaque unsigned integer which must be used in the subsequent call to ddi_exit_critical().
CONTEXT
This function can be called from user, interrupt, or kernel context.
WARNINGS
Driver writers should note that in a multiple processor system this function does not temporarily suspend other processors from executing.
This function also cannot guarantee to actually block the hardware from doing such things as interrupt acknowledge cycles. What it can do
is guarantee that the currently executing thread will not be preempted.
Do not write code bracketed by ddi_enter_critical() and ddi_exit_critical() that can get caught in an infinite loop, as the machine may
crash if you do.
SEE ALSO
mutex(9F)
Writing Device Drivers
SunOS 5.11 16 Jan 2006 ddi_enter_critical(9F)