Page MenuHomeFreeBSD

Eliminate p_elf_machine from struct proc.
ClosedPublic

Authored by dchagin on Jun 28 2021, 5:25 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 7, 9:00 AM
Unknown Object (File)
Feb 24 2024, 9:48 PM
Unknown Object (File)
Feb 7 2024, 12:20 AM
Unknown Object (File)
Feb 4 2024, 9:09 AM
Unknown Object (File)
Jan 14 2024, 4:50 AM
Unknown Object (File)
Dec 23 2023, 12:44 AM
Unknown Object (File)
Dec 12 2023, 7:00 AM
Unknown Object (File)
Nov 23 2023, 6:30 PM
Subscribers

Details

Summary

Instead of p_elf_machine use machine member of the Elf_Brandinfo which is now
cached in the struct proc at p_elf_brandinfo member.

As p_elf_flags alignment is 8 bytes here is a hole, should I remove p_reserved?

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kib added inline comments.
sys/sys/proc.h
702–703

We do not leave the cruft in system structures (in HEAD), even if it is padding.

This revision is now accepted and ready to land.Jun 28 2021, 5:56 PM
This revision was automatically updated to reflect the committed changes.