Visit Our UNIX and Linux User Community

Linux and UNIX Man Pages

Test Your Knowledge in Computers #287
Difficulty: Medium
AIX 7.2 was initially released on December 1, 2013.
True or False?
Linux & Unix Commands - Search Man Pages

yield_to(9) [centos man page]

YIELD_TO(9)							   Driver Basics						       YIELD_TO(9)

yield_to - yield the current processor to another thread in your thread group, or accelerate that thread toward the processor it's on. SYNOPSIS
bool __sched yield_to(struct task_struct * p, bool preempt); ARGUMENTS
p target task preempt whether task preemption is allowed or not DESCRIPTION
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. RETURN
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_examine - prepare to examine thread state SYNOPSIS
int utrace_prepare_examine(struct task_struct * target, struct utrace_engine * engine, struct utrace_examiner * exam); ARGUMENTS
target thread of interest, a struct task_struct pointer engine engine pointer returned by utrace_attach_task exam temporary state, a struct utrace_examiner pointer DESCRIPTION
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)

4 More Discussions You Might Find Interesting

1. Programming

compiling and linking 2 C files ...??

Hi mates, I am trying to copile and link to C programs with command: cc file1,file2 but i raises the error "file not found" ... am i doing the right way? any suggestion will be appreciated. thanks abdul (4 Replies)
Discussion started by: abdul
4 Replies

2. Shell Programming and Scripting

awk eating too much memory?

Hi all, 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)
Discussion started by: anishkumarv
13 Replies

3. Shell Programming and Scripting

Searching for a pattern and extracting records related to that pattern

Hi there, 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. Sample: I have one file with the fixed... (3 Replies)
Discussion started by: danish0909
3 Replies

4. UNIX for Dummies Questions & Answers

List versus find command

Hi, 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. and find /var/output -type f *.css... (13 Replies)
Discussion started by: mohtashims
13 Replies

Featured Tech Videos