Commit acfc0bd
committed
lib: drop ff_kernel_coexist_enabled accessor, read ff_global_cfg directly
The accessor only wrapped a single struct member read and required two
identical declarations (ff_config.h + ff_host_interface.h) because the
host-bridge header intentionally avoids depending on ff_config.h.
Remove the accessor entirely; the sole caller (ff_syscall_wrapper.c)
now includes ff_config.h and reads ff_global_cfg.stack.kernel_coexist
directly. ff_host_interface.h keeps its lightweight host-bridge scope
(no ff_config.h pull-in). Unit tests drop the redundant accessor
assertions but still assert the underlying global. Spec docs updated
to match the implementation.1 parent 793d9ff commit acfc0bd
9 files changed
Lines changed: 8 additions & 25 deletions
File tree
- docs/kernel_event_support_spec
- zh_cn
- lib
- tests/unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1376 | 1376 | | |
1377 | 1377 | | |
1378 | 1378 | | |
1379 | | - | |
1380 | | - | |
1381 | | - | |
1382 | | - | |
1383 | | - | |
1384 | | - | |
1385 | 1379 | | |
1386 | 1380 | | |
1387 | 1381 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | 353 | | |
358 | 354 | | |
359 | 355 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | 129 | | |
133 | 130 | | |
134 | 131 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| |||
923 | 924 | | |
924 | 925 | | |
925 | 926 | | |
926 | | - | |
| 927 | + | |
927 | 928 | | |
928 | 929 | | |
929 | 930 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1007 | 1007 | | |
1008 | 1008 | | |
1009 | 1009 | | |
1010 | | - | |
1011 | | - | |
1012 | | - | |
| 1010 | + | |
1013 | 1011 | | |
1014 | 1012 | | |
1015 | 1013 | | |
1016 | 1014 | | |
1017 | 1015 | | |
1018 | 1016 | | |
1019 | 1017 | | |
1020 | | - | |
1021 | 1018 | | |
1022 | 1019 | | |
1023 | | - | |
| 1020 | + | |
1024 | 1021 | | |
1025 | 1022 | | |
1026 | 1023 | | |
1027 | 1024 | | |
1028 | 1025 | | |
1029 | 1026 | | |
1030 | 1027 | | |
1031 | | - | |
1032 | 1028 | | |
1033 | 1029 | | |
1034 | 1030 | | |
| |||
1039 | 1035 | | |
1040 | 1036 | | |
1041 | 1037 | | |
1042 | | - | |
1043 | 1038 | | |
1044 | 1039 | | |
1045 | 1040 | | |
| |||
0 commit comments