Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

kthread_create_on_node(9) [centos man page]

KTHREAD_CREATE_ON_NO(9) 					   Driver Basics					   KTHREAD_CREATE_ON_NO(9)

NAME
kthread_create_on_node - create a kthread. SYNOPSIS
struct task_struct * kthread_create_on_node(int (*threadfn) (void *data), void * data, int node, const char namefmt[], ...); ARGUMENTS
threadfn the function to run until signal_pending(current). data data ptr for threadfn. node memory node number. namefmt[] printf-style name for the thread. ... variable arguments DESCRIPTION
This helper function creates and names a kernel thread. The thread will be stopped: use wake_up_process to start it. See also kthread_run. If thread is going to be bound on a particular cpu, give its node in node, to get NUMA affinity for kthread stack, or else give -1. When woken, the thread will run threadfn() with data as its argument. threadfn() can either call do_exit directly if it is a standalone thread for which no one will call kthread_stop, or return when 'kthread_should_stop' is true (which means kthread_stop has been called). The return value should be zero or a negative error number; it will be passed to kthread_stop. Returns a task_struct or ERR_PTR(-ENOMEM). COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 KTHREAD_CREATE_ON_NO(9)

Check Out this Related Man Page

tapset::scheduler(3stap)												  tapset::scheduler(3stap)

NAME
tapset::scheduler - systemtap scheduler tapset DESCRIPTION
scheduler.cpu_off Process is about to stop running on a cpu See probe::scheduler.cpu_off(3stap) for details. scheduler.cpu_on Process is beginning execution on a cpu See probe::scheduler.cpu_on(3stap) for details. scheduler.tick Schedulers internal tick, a processes timeslice accounting is updated See probe::scheduler.tick(3stap) for details. scheduler.balance A cpu attempting to find more work. See probe::scheduler.balance(3stap) for details. scheduler.ctxswitch A context switch is occuring. See probe::scheduler.ctxswitch(3stap) for details. scheduler.kthread_stop A thread created by kthread_create is being stopped See probe::scheduler.kthread_stop(3stap) for details. scheduler.kthread_stop.return A kthread is stopped and gets the return value See probe::scheduler.kthread_stop.return(3stap) for details. scheduler.wait_task Waiting on a task to unschedule (become inactive) See probe::scheduler.wait_task(3stap) for details. scheduler.wakeup Task is woken up See probe::scheduler.wakeup(3stap) for details. scheduler.wakeup_new Newly created task is woken up for the first time See probe::scheduler.wakeup_new(3stap) for details. scheduler.migrate Task migrating across cpus See probe::scheduler.migrate(3stap) for details. scheduler.process_free Scheduler freeing a data structure for a process See probe::scheduler.process_free(3stap) for details. scheduler.process_exit Process exiting See probe::scheduler.process_exit(3stap) for details. scheduler.process_wait Scheduler starting to wait on a process See probe::scheduler.process_wait(3stap) for details. scheduler.process_fork Process forked See probe::scheduler.process_fork(3stap) for details. scheduler.signal_send Sending a signal See probe::scheduler.signal_send(3stap) for details. SEE ALSO
probe::scheduler.cpu_off(3stap), probe::scheduler.cpu_on(3stap), probe::scheduler.tick(3stap), probe::scheduler.balance(3stap), probe::scheduler.ctxswitch(3stap), probe::scheduler.kthread_stop(3stap), probe::scheduler.kthread_stop.return(3stap), probe::scheduler.wait_task(3stap), probe::scheduler.wakeup(3stap), probe::scheduler.wakeup_new(3stap), probe::scheduler.migrate(3stap), probe::scheduler.process_free(3stap), probe::scheduler.process_exit(3stap), probe::scheduler.process_wait(3stap), probe::scheduler.process_fork(3stap), probe::scheduler.signal_send(3stap), stap(1), stapprobes(3stap) IBM
--- tapset::scheduler(3stap)
Man Page