04-19-2011
The concept of "current process" doesn't exist inside the kernel. What you're asking doesn't make a ton of sense.
10 More Discussions You Might Find Interesting
1. HP-UX
Good Day
Please couls somebody tell me how to display Configurable Kernel parameters from the command line. I am able to do it from SAM,but would like to dump the command line output to a text file so I can email it off to HP.
Kind Regards
Shawn (1 Reply)
Discussion started by: shawnbishop
1 Replies
2. SuSE
Hi All,
Is there a max number of slabs that can be used per kernel module? I'm having a tough time finding out that kind of information, but the array 'node_zonelists' (mmzone.h) has a size of 5. I just want to avoid buffer overruns and other bad stuff.
Cheers,
Brendan (4 Replies)
Discussion started by: Brendan Kennedy
4 Replies
3. UNIX for Dummies Questions & Answers
All,
I've got a script that needs to check if it was started by cron. The code seems to be right, but it's not running correctly if cron starts it. Am I getting the pid's correctly? I'm not having any luck figuring it out. :confused: Any help is appreciated!
CRON_ID=$(ps -aef | grep... (1 Reply)
Discussion started by: GregWold
1 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I need to get the pid of a process and have to store the pid in a variable and i want to use this value(pid) of the variable for some process. Please can anyone tell me how to get the pid of a process and store it in a variable. please help me on this.
Thanks in advance,
Amudha (7 Replies)
Discussion started by: samudha
7 Replies
5. UNIX for Dummies Questions & Answers
Hi,
Does anyone know if it is possible to know the current value of a kernel module parameters after the module is loaded. Are the values of the parameters advertised at some /proc or /sys location ?
The only thing I know is modinfo, that actually looks a the module .ko and gives a... (3 Replies)
Discussion started by: macL
3 Replies
6. Linux
Hi all,
I am working on USB data monitoring on Fedora Core 9. Kernel 2.6.25 has a built-in module (the one that isn't loadable, but compiles and links statically with the kernel during compilation) to snoop USB data. It is in <kernel_source_code>/drivers/usb/mon/.
I need to know if I can... (0 Replies)
Discussion started by: anitemp
0 Replies
7. Solaris
Hi gurus
Could anybody tell me which file is read by kernel to set its default system kernal parameters values in solaris. Here I am not taking about /etc/system file which is used to load kernal modules or to change any default system kernal parameter value
Is it /dev/kmem file or something... (1 Reply)
Discussion started by: girish.batra
1 Replies
8. Linux
Hi,
if I install a module with specific parameter, will this parameters applied next time system boots?
for exampe, I want to disable InterruptThrottleRate
modprobe e1000e InterruptThrottleRate=0
Is this parameter apllied only for this run, or this module will always use this parameter when... (2 Replies)
Discussion started by: Shedon
2 Replies
9. Linux
Hi everyone,
I am trying to prevent the ehci_hcd kernel module to load at boot time.
Here's what I've tried so far:
1) Add the following line to /etc/modprobe.d/blacklist.conf (as suggested here):
2) Blacklisted the module by adding the following string to
3) Tried to blacklist the module... (0 Replies)
Discussion started by: gacanepa
0 Replies
10. Shell Programming and Scripting
I'm trying to create a ksh script to do the following:
1) Ask the user what process they want to search for.
2) Have the script read the input as a variable and use it to search for the process.
3) Display the current time & date, the working directory of the process, and finally display the... (6 Replies)
Discussion started by: seekryts15
6 Replies
LEARN ABOUT OSF1
sched_getparam
sched_getparam(3) Library Functions Manual sched_getparam(3)
NAME
sched_getparam - Returns the scheduling parameters of the specified process (P1003.1b)
LIBRARY
Realtime Library (librt.so, librt.a)
SYNOPSIS
#include <sched.h>
int sched_getparam (
pid_t pid,
struct sched_param *param);
PARAMETERS
pid Specifies the ID of the process for which scheduling parameters are to be returned. If pid is zero, the scheduling parameters of
the calling process are returned.
*param Specifies a pointer to a sched_param structure to receive the scheduling parameters of the specified process. The priority field
receives the current priority of the process specified by the pid. The sched_param structure is defined in <sched.h>.
DESCRIPTION
The sched_getparam function returns the scheduling parameters of a process. If the pid is zero, the scheduling parameters are returned for
the calling process.
Use the sched_setparam function to change the scheduling parameters.
Currently, the sched_param structure contains only a priority field.
The priority of a process is inherited across fork and exec calls.
No special privileges are needed to use the sched_getparam function.
RETURN VALUES
On a successful call to the sched_getparam function, a value of 0 (zero) is returned. On an unsuccessful call, a value of -1 is returned
and errno is set to indicate that an error occurred and that no scheduling parameters were returned.
ERRORS
The sched_getparam function fails under the following conditions:
[EINVAL] Invalid value specified for the pid argument, the param pointer is NULL, or one or more of the parameters in it is outside
the valid range.
[ESRCH] No process can be found corresponding to that specified by pid.
RELATED INFORMATION
Functions: getpid(2), sched_getscheduler(3), sched_setparam(3), sched_setscheduler(3)
Guide to Realtime Programming delim off
sched_getparam(3)