Minor subject updates

This commit is contained in:
York Jasper Niebuhr 2026-04-03 23:37:45 +02:00
parent aae833788f
commit affe371084
2 changed files with 13 additions and 11 deletions

View File

@ -1,3 +1,4 @@
Nested data pins have to work
Collect alignment data from struct members Collect alignment data from struct members
Fix bit fields in place Fix bit fields in place

View File

@ -46,7 +46,8 @@ int main(void)
printf(" pid=%d, comm=%s\n", task->pid, task->comm); printf(" pid=%d, comm=%s\n", task->pid, task->comm);
} }
size_t myOffset = ((size_t)&((struct task_struct*)0)->tasks); // BROKEN, relevancy for kernel unknown size_t myOffset = ((size_t)&((struct task_struct*)0)->tasks);
printf("DIY offsetof(task_struct, tasks) yiels %2llu\n", myOffset);
return second_pid() * third_pid(); return second_pid() * third_pid();
} }