Re: How to write a kernel patch to expose a kernel-level function?
- From: hzmonte@xxxxxxxxxxx
- Date: 30 Jan 2006 18:35:39 -0800
>http://altlinux.org/index.php?module=sisyphus&package=cpuid
Thx but no, it is not what I want. This package displays the CPU spec
like who the manufacturer is and what model it is, etc. 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?
>In both cases you need a piece of kernel code, a patch or a kernel module
So my question is How to write a kernel patch? Is it as simple as
adding a statement in the source like "EXPORT TO USER-SPACE
smp_processor_id"? Any pointer to how to do it? Ay more concrete
guideline?
.
- Follow-Ups:
- Re: How to write a kernel patch to expose a kernel-level function?
- From: Tauno Voipio
- Re: How to write a kernel patch to expose a kernel-level function?
- From: John Hasler
- Re: How to write a kernel patch to expose a kernel-level function?
- References:
- How to write a kernel patch to expose a kernel-level function?
- From: hzmonte
- Re: How to write a kernel patch to expose a kernel-level function?
- From: Tauno Voipio
- How to write a kernel patch to expose a kernel-level function?
- Prev by Date: Re: Ubundu: Doing something security-wise with it's partition?
- Next by Date: Re: How to write a kernel patch to expose a kernel-level function?
- Previous by thread: Re: How to write a kernel patch to expose a kernel-level function?
- Next by thread: Re: How to write a kernel patch to expose a kernel-level function?
- Index(es):
Relevant Pages
|