Re: How to write a kernel patch to expose a kernel-level function?



John Hasler <john@xxxxxxxxxx> wrote:
> hzmonte writes:
>> What I want, and what smp_processor_id() returns, is which logical
>> processor the calling thread is running on. Is CPU0, CPU1, or CPU2, for
>> example?

> Why? Of what possible use could that information be? What problem are you
> trying to solve?

Dunno. Probably some mistaken idea. But anyway it would be simple to do
- some ioctl which returns what he wants. But doesn't he have the info
in proc anyway?

% cat /proc/self/cpu
cpu 0 1
cpu0 0 1

Peter
.



Relevant Pages

  • Re: Mac OSx Mozzila?
    ... Dunno about your tabs question. ... Peter ... Prev by Date: ...
    (uk.comp.sys.mac)
  • overload shell script
    ... Do you know how to write a base shell script that can make CPU ... from Peter ... Prev by Date: ...
    (comp.unix.shell)
  • Re: Mini Review: The new iMac G5
    ... > Have you applied the recent software update that turns the brightness ... I dunno. ... Peter ... Prev by Date: ...
    (uk.comp.sys.mac)
  • Re: Drifter
    ... dunno why) ... Timing out from here, too. ... Peter ... Prev by Date: ...
    (uk.comp.sys.mac)
  • Re: OT: Haunted PC
    ... Dunno, but Ross had a job for a while at a firm which took on Packard ... be gradually re-built, starting with RAM, then CPU, hen MoBo, Graphics, ... component swap. ...
    (uk.rec.motorcycles)