All of lore.kernel.org
 help / color / mirror / Atom feed
[parent not found: <Pine.LNX.4.33.0203161300300.1089-100000@einstein.homenet.suse.lists.linux.kernel>]
* Nice values for kernel modules
@ 2002-03-15 23:59 Balbir Singh
  2002-03-16  9:51 ` tigran
  0 siblings, 1 reply; 14+ messages in thread
From: Balbir Singh @ 2002-03-15 23:59 UTC (permalink / raw)
  To: Linux Kernel

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/

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2002-03-25  8:21 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [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     ` Nice values for kernel modules 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
2002-03-15 23:59 Balbir Singh
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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.