05-13-2012
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I just changed from windows NT to XP and I am no longer able
to connect to my unix system. I used to use hyper terminal -- which acts as dumb terminal to my main frame unix system. I think one of the options used to be "direct to comX". This option isn't listed now. I use a serial port and the... (2 Replies)
Discussion started by: michelle
2 Replies
2. Shell Programming and Scripting
A programming running in tty0 crashes.
In a second terminal I kill all the processes.
Can i start the program again from this terminal?
Yes, I can, but it starts in tty1, and when i close the terminal, the program closes.
Now I want to start the program from tty1 in tty0, so i can close... (4 Replies)
Discussion started by: benschell
4 Replies
3. UNIX for Dummies Questions & Answers
Hellp all,
if there is 3G memory in my Unix server I want to know if all the 3G space can be used by ong sigle process. As i know, in Windows, one process can only access at most 1G memory despite there is probably more than 1G memory is equipped. (1 Reply)
Discussion started by: cy163
1 Replies
4. UNIX for Advanced & Expert Users
i want to execute a shell script even if the terminal is closed. how to do? (3 Replies)
Discussion started by: lakshmananindia
3 Replies
5. UNIX for Advanced & Expert Users
I pressed CTRL Z and suspended the job. then I pressed bg, The process re-started to throw output on the terminal and its not allowing me to access the prompt.
its not even accepting CTRL Z. The process has been running for about 2 hours now and I want to suspend it by opening another terminal.... (3 Replies)
Discussion started by: rakeshou
3 Replies
6. Shell Programming and Scripting
Hi Folks,
When i try to run schedule job on Unix server am getting following errror messges in logs
pic_selection @starting on Fri Feb 5 01:53:06 GMT 2010
-------------------------------------------------------------------------------
Microfocus Cobol batch run
Started: Fri Feb 5... (4 Replies)
Discussion started by: bhargav20
4 Replies
7. Solaris
Hi *,
please, I need fast tip (help). I have a process starting through /etc/rc3.d/xxxx script. However, sometimes (mostly because of testing reasons) I need to stop the process, change something and then start it again. But:
1) when I start it in terminal, the process dies when I leave the... (2 Replies)
Discussion started by: freeangel
2 Replies
8. Shell Programming and Scripting
Hi All,
i ve a process,
user4 31779 2836 0 01:43 pts/6 00:00:00 sh /home/user/DATE/SUT_SCR/c.sh
like this i'll get so many process when in run ps -ef | grep pts | grep c.sh
i need to extract terminal id from this string. i.e pts/6, or sometimes pts/22 same way i need to do for... (3 Replies)
Discussion started by: asak
3 Replies
9. UNIX for Beginners Questions & Answers
I do not wish to install Unix or Linux locally be it on my system or my Virtual box.
I am looking for an online free Linux / Unix Terminal that i can connect and use.
Something like ... Unix Terminal Online
But the problem with Unix Terminal Online] is that i CANNOT ping it's ip which i... (3 Replies)
Discussion started by: mohtashims
3 Replies
10. AIX
Hi,
I new to AIX, and I have been using Rocket UniData in it. I had to set up a Process for Data Exchange by assigning a unique Terminal and a Socket Port to that process. I ran the process for the first time and it was successful and after use I stopped the process. Now when I want to run it... (3 Replies)
Discussion started by: BejoyS
3 Replies
LEARN ABOUT SUNOS
drv_getparm
drv_getparm(9F) Kernel Functions for Drivers drv_getparm(9F)
NAME
drv_getparm - retrieve kernel state information
SYNOPSIS
#include <sys/ddi.h>
int drv_getparm(unsigned int parm, void *value_p);
INTERFACE LEVEL
Architecture independent level 1 (DDI/DKI).
PARAMETERS
parm The kernel parameter to be obtained. Possible values are:
"small and bold"ReadLTthe value of lbolt. lbolt is a clock_t that is unconditionally incremented by one at each clock tick. No special
treatment is applied when this value overflows the maximum value of the signed integral type clock_t. When this occurs, its
value will be negative, and its magnitude will be decreasing until it again passes zero. It can therefore not be relied
upon to provide an indication of the amount of time that passes since the last system reboot, nor should it be used to mark
an absolute time in the system. Only the difference between two measurements of lbolt is significant. It is used in this
way inside the system kernel for timing purposes.
PPGRP Read the process group identification number. This number determines which processes should receive a HANGUP or BREAK
signal when detected by a driver.
UPROCP Read the process table token value.
PPID Read process identification number.
PSID Read process session identification number.
TIME Read time in seconds.
UCRED Return a pointer to the caller's credential structure.
value_p A pointer to the data space in which the value of the parameter is to be copied.
DESCRIPTION
Since the release of the Solaris 2.6 operating environment, the drv_getparm() function has been replaced by ddi_get_lbolt(9F),
ddi_get_time(9F), and ddi_get_pid(9F).
drv_getparm() function verifies that parm corresponds to a kernel parameter that may be read. If the value of parm does not correspond
to a parameter or corresponds to a parameter that may not be read, -1 is returned. Otherwise, the value of the parameter is stored in the
data space pointed to by value_p.
drv_getparm() does not explicitly check to see whether the device has the appropriate context when the function is called and the function
does not check for correct alignment in the data space pointed to by value_p. It is the responsibility of the driver writer to use this
function only when it is appropriate to do so and to correctly declare the data space needed by the driver.
RETURN VALUES
drv_getparm() returns 0 to indicate success, -1 to indicate failure. The value stored in the space pointed to by value_p is the value of
the parameter if 0 is returned, or undefined if -1 is returned. -1 is returned if you specify a value other than LBOLT, PPGRP, PPID,
PSID, TIME, UCRED, or UPROCP. Always check the return code when using this function.
CONTEXT
drv_getparm() can be called from user context only when using PPGRP, PPID, PSID, UCRED, or UPROCP. It can be called from user or interrupt
context when using the LBOLT or TIME argument.
SEE ALSO
ddi_get_lbolt(9F), ddi_get_pid(9F), ddi_get_time(9F), buf(9S)
Writing Device Drivers
SunOS 5.10 24 Jun 1997 drv_getparm(9F)