Lines Matching refs:task_struct

144 extern void update_one_process(struct task_struct *p, unsigned long user,
157 extern void set_cpus_allowed(struct task_struct *p, unsigned long new_mask);
283 struct task_struct { struct
326 struct task_struct *next_task, *prev_task; argument
351 struct task_struct *p_opptr, *p_pptr, *p_cptr, *p_ysptr, *p_osptr; argument
355 struct task_struct *pidhash_next; argument
356 struct task_struct **pidhash_pprev; argument
523 struct task_struct task;
530 extern struct task_struct *init_tasks[NR_CPUS];
534 extern struct task_struct *pidhash[PIDHASH_SZ];
538 static inline void hash_pid(struct task_struct *p) in hash_pid()
540 struct task_struct **htable = &pidhash[pid_hashfn(p->pid)]; in hash_pid()
548 static inline void unhash_pid(struct task_struct *p) in unhash_pid()
555 static inline struct task_struct *find_task_by_pid(int pid) in find_task_by_pid()
557 struct task_struct *p, **htable = &pidhash[pid_hashfn(pid)]; in find_task_by_pid()
567 static inline void task_set_cpu(struct task_struct *tsk, unsigned int cpu) in task_set_cpu()
573 static inline void task_release_cpu(struct task_struct *tsk) in task_release_cpu()
605 extern int FASTCALL(wake_up_process(struct task_struct * tsk));
623 extern void flush_signals(struct task_struct *);
624 extern void flush_signal_handlers(struct task_struct *);
630 extern int send_sig_info(int, struct siginfo *, struct task_struct *);
631 extern int force_sig_info(int, struct siginfo *, struct task_struct *);
635 extern void notify_parent(struct task_struct *, int);
636 extern void do_notify_parent(struct task_struct *, int);
637 extern void force_sig(int, struct task_struct *);
638 extern int send_sig(int, struct task_struct *, int);
645 static inline int signal_pending(struct task_struct *p) in signal_pending()
684 static inline void recalc_sigpending(struct task_struct *t) in recalc_sigpending()
791 extern int copy_thread(int, unsigned long, unsigned long, unsigned long, struct task_struct *, str…
795 extern void exit_mm(struct task_struct *);
796 extern void exit_files(struct task_struct *);
797 extern void exit_sighand(struct task_struct *);
805 extern void set_task_comm(struct task_struct *tsk, char *from);
806 extern void get_task_comm(char *to, struct task_struct *tsk);
895 list_entry((p)->thread_group.next, struct task_struct, thread_group)
899 static inline void del_from_runqueue(struct task_struct * p) in del_from_runqueue()
907 static inline int task_on_runqueue(struct task_struct *p) in task_on_runqueue()
912 static inline void unhash_process(struct task_struct *p) in unhash_process()
925 static inline void task_lock(struct task_struct *p) in task_lock()
930 static inline void task_unlock(struct task_struct *p) in task_unlock()