cregit-Linux how code gets into the kernel

Release 4.12 include/linux/task_work.h

Directory: include/linux
#ifndef _LINUX_TASK_WORK_H

#define _LINUX_TASK_WORK_H

#include <linux/list.h>
#include <linux/sched.h>


typedef void (*task_work_func_t)(struct callback_head *);


static inline void init_task_work(struct callback_head *twork, task_work_func_t func) { twork->func = func; }

Contributors

PersonTokensPropCommitsCommitProp
Oleg Nesterov2095.24%150.00%
Al Viro14.76%150.00%
Total21100.00%2100.00%

int task_work_add(struct task_struct *task, struct callback_head *twork, bool); struct callback_head *task_work_cancel(struct task_struct *, task_work_func_t); void task_work_run(void);
static inline void exit_task_work(struct task_struct *task) { task_work_run(); }

Contributors

PersonTokensPropCommitsCommitProp
Oleg Nesterov15100.00%1100.00%
Total15100.00%1100.00%

#endif /* _LINUX_TASK_WORK_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Oleg Nesterov9395.88%150.00%
Al Viro44.12%150.00%
Total97100.00%2100.00%
Directory: include/linux
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.