Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ecular opened this issue Oct 27, 2019 · 3 comments
Open

Comments

@ecular
Copy link

ecular commented Oct 27, 2019

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

@ecular
Copy link
Author

ecular commented Oct 28, 2019

I have got the answer.

@novitoll
Copy link

novitoll commented Dec 3, 2019

@ecular , could you please explain?

@novitoll
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants