Re: [PATCH 09/11] sched: export task_prio to GPL modules

Mathieu Desnoyers
2011-12-02T13:51:30Z

* Peter Zijlstra (peterz@infradead.org) wrote:
> On Thu, 2011-12-01 at 17:36 -0500, Mathieu Desnoyers wrote:
> > So what you are saying is that it is fine to export task_prio to
> > _userspace_, thus making it part of the ABI, but it's not OK to export
> > it to GPL modules ?
>
> that's a SCHED_DEBUG proc file.

Fair point. You'll then notice that /proc/<pid>/stat (18th field)
exports it too, and it's not under SCHED_DEBUG:

ok:/proc/20# cat stat
20 (migration/5) S 2 0 0 0 -1 2216722496 0 0 0 0 0 0 0 0 -100 0 1 0 70 0
0 18446744073709551615 0 0 0 0 0 0 0 2147483647 0 18446744071579371389 0
0 17 5 99 1 0 0 0

(see -100 above)

as defined in Documentation/filesystems/proc.txt:

"Table 1-4: Contents of the stat files (as of 2.6.30-rc7)
[...]
priority priority level"

Thanks,

Mathieu

--
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.