From: Balbir Singh <balbir_soni@yahoo.com>
To: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Nice values for kernel modules
Date: Fri, 15 Mar 2002 15:59:44 -0800 (PST) [thread overview]
Message-ID: <20020315235944.59157.qmail@web13601.mail.yahoo.com> (raw)
In older v2.4 we could directly access current->nice
and set it to any value we wanted. This has now
been replaced by set_user_nice(). The problem
that I face is that task_nice() is not exportted, so
my kernel module cannot use it to read the current
nice value.
Was there some reason for hiding the nice value from
kernel modules?
I have the following solutions
0. I could use the TASK_NICE() macro, but I would
like to avoid using it.
1. Export task_nice in ksyms.c
2. Use sys_nice() using a user space disguise.
Comments,
Balbir Singh.
__________________________________________________
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/
next reply other threads:[~2002-03-16 0:00 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-15 23:59 Balbir Singh [this message]
2002-03-16 9:51 ` tigran
2002-03-16 10:00 ` Keith Owens
2002-03-16 10:41 ` Paul Mackerras
2002-03-16 11:27 ` Tigran Aivazian
2002-03-16 12:34 ` Keith Owens
2002-03-16 13:04 ` Tigran Aivazian
2002-03-16 13:52 ` Christoph Hellwig
2002-03-16 17:42 ` Alan Cox
2002-03-16 15:48 ` John Levon
[not found] <Pine.LNX.4.33.0203161126130.1090-100000@einstein.homenet.suse.lists.linux.kernel>
[not found] ` <16358.1016282075@ocs3.intra.ocs.com.au.suse.lists.linux.kernel>
[not found] ` <20020316154848.GA82190@compsoc.man.ac.uk.suse.lists.linux.kernel>
2002-03-16 16:03 ` Andi Kleen
[not found] <Pine.LNX.4.33.0203161300300.1089-100000@einstein.homenet.suse.lists.linux.kernel>
[not found] ` <E16mICa-0006mr-00@the-village.bc.nu.suse.lists.linux.kernel>
2002-03-16 22:03 ` Andi Kleen
2002-03-25 7:47 ` Eric W. Biederman
2002-03-25 8:20 ` John Levon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020315235944.59157.qmail@web13601.mail.yahoo.com \
--to=balbir_soni@yahoo.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®