Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/sys
Module Name: src
Committed By: yamt
Date: Mon Mar 23 23:44:12 UTC 2026
Modified Files:
src/sys/compat/common: compat_110_mod.c compat_mod.h files.common
src/sys/compat/sys: uvm.h
src/sys/modules/compat_110: Makefile
src/sys/sys: swap.h
src/sys/uvm: uvm_swap.c uvm_swapstub.c
Log Message:
swapctl: report npgbad
the current layout of swapent is like the following on amd64:
```
(gdb) ptype /o struct swapent
/* offset | size */ type = struct swapent {
/* 0 | 8 */ dev_t se_dev;
/* 8 | 4 */ int se_flags;
/* 12 | 4 */ int se_nblks;
/* 16 | 4 */ int se_inuse;
/* 20 | 4 */ int se_priority;
/* 24 | 1025 */ char se_path[1025];
/* XXX 7-byte padding */
/* total size (bytes): 1056 */
}
```
while it's tempting to use the padding for the new member
to avoid versioning, i guess we can't because, on some
architectures, 64-bit value only has 32-bit alignment. (eg. i386)
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/compat/common/compat_110_mod.c
cvs rdiff -u -r1.12 -r1.13 src/sys/compat/common/compat_mod.h
cvs rdiff -u -r1.14 -r1.15 src/sys/compat/common/files.common
cvs rdiff -u -r1.2 -r1.3 src/sys/compat/sys/uvm.h
cvs rdiff -u -r1.2 -r1.3 src/sys/modules/compat_110/Makefile
cvs rdiff -u -r1.9 -r1.10 src/sys/sys/swap.h
cvs rdiff -u -r1.217 -r1.218 src/sys/uvm/uvm_swap.c
cvs rdiff -u -r1.9 -r1.10 src/sys/uvm/uvm_swapstub.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index