[Cbe-oss-dev] [PATCH 05/11]MARS: Kernel syscall add get workload by id
Kazunori Asayama
asayama at sm.sony.co.jp
Tue Sep 16 16:43:27 EST 2008
Yuji Mano wrote:
> Kazunori Asayama wrote:
>> The static area 'requested_workload' can be overwritten by the next
>> workload_get_by_id call. Is it OK?
>>
>
> In the current implementation this is not a problem.
> But of course the caller needs to be aware that the context ptr returned
> is only valid until the next call to that function. Currently the task
> policy uses this only so it can get the exit_code out from the context and
> does not keep the returned pointer around.
>
> I think this is fine for now because this syscall is available only between
> the kernel and the runtime policy internal implementation and not made
> available publicly.
OK, agreed.
>
> If and when we decide to provide a custom policy module interface, this
> may need to change for more flexibility.
Or just we can say about this restriction in the reference manual.
--
(ASAYAMA Kazunori
(asayama at sm.sony.co.jp))
t
More information about the cbe-oss-dev
mailing list