qu1ckr00t icon indicating copy to clipboard operation
qu1ckr00t copied to clipboard

Question: why current_ptr = *(unsigned long *)(page_buffer + 0xe8);

Open ecular opened this issue 5 years ago • 3 comments

I know 0xe8 = 14 * sizeof(struct iovec) + 8. But why task_struct * is stored at &task_list + 0xe8 ?

ecular avatar Oct 27 '19 08:10 ecular

I have got the answer.

ecular avatar Oct 28 '19 01:10 ecular

@ecular , could you please explain?

novitoll avatar Dec 03 '19 07:12 novitoll

Got it as well. This is the offset from waitqueue->*next pointer to struct task_struct *task in struct binder_thread object.

novitoll avatar Dec 14 '19 07:12 novitoll