YIELD_TO(9) Driver Basics YIELD_TO(9)NAME
yield_to - yield the current processor to another thread in your thread group, or accelerate that thread toward the processor it's on.
bool __sched yield_to(struct task_struct * p, bool preempt);
whether task preemption is allowed or not
It's the caller's job to ensure that the target task struct can't go away on us before we can do any checks.
true (>0) if we indeed boosted the target task. false (0) if we failed to boost the target. -ESRCH if there's no task to yield to.
COPYRIGHT Kernel Hackers Manual 3.10 June 2014 YIELD_TO(9)
Check Out this Related Man Page
UTRACE_PREPARE_EXAMI(9) utrace core API UTRACE_PREPARE_EXAMI(9)NAME
utrace_prepare_examine - prepare to examine thread state
int utrace_prepare_examine(struct task_struct * target, struct utrace_engine * engine, struct utrace_examiner * exam);
thread of interest, a struct task_struct pointer
engine pointer returned by utrace_attach_task
temporary state, a struct utrace_examiner pointer
This call prepares to safely examine the thread target using struct user_regset calls, or direct access to thread-synchronous fields.
When target is current, this call is superfluous. When target is another thread, it must held stopped via UTRACE_STOP by engine.
This call may block the caller until target stays stopped, so it must be called only after the caller is sure target is about to
unschedule. This means a zero return from a utrace_control call on engine giving UTRACE_STOP, or a report_quiesce or report_signal callback
to engine that used UTRACE_STOP in its return value.
Returns -ESRCH if target is dead or -EINVAL if UTRACE_STOP was not used. If target has started running again despite UTRACE_STOP (for
SIGKILL or a spurious wakeup), this call returns -EAGAIN.
When this call returns zero, it's safe to use struct user_regset calls and task_user_regset_view on target and to examine some of its
fields directly. When the examination is complete, a utrace_finish_examine call must follow to check whether it was completed safely.
Kernel Hackers Manual 2.6. July 2010 UTRACE_PREPARE_EXAMI(9)
I am trying to copile and link to C programs with command:
but i raises the error "file not found" ... am i doing the right way?
any suggestion will be appreciated.
abdul (4 Replies)
using AWK iam sorting auniq data from a file the file size is 8GB, while running that script , the over all cpu usage will be nearly 8
how to avoid this ?? any other alternate is available for awk?
Thanks in Advance
Anish kumar.V (13 Replies)
Looking forward to your advice for the below:
I have a file which contains 2 paragraphs related to a particular pattern. I have to search for those paragraphs from a log file and then print a particular line from those paragraphs.
I have one file with the fixed... (3 Replies)
My OS is SunOS mymac1 5.10 Generic_148888-04 sun4v sparc SUNW,SPARC-Enterprise-T5220
When i cd /var/output
ls -ltr *.css
It yields the output in less than a second. While
find /var/output -type f -name "*.css"
does not complete for a while.
find /var/output -type f *.css... (13 Replies)