Lines Matching defs:protection
190 UiUtils::AreaProtectionFlagsToString(uint32 protection, BString& _output)
193 #define ADD_AREA_FLAG_IF_PRESENT(flag, protection, name, output, missing)\
194 if ((protection & flag) != 0) { \
196 protection &= ~flag; \
201 uint32 userFlags = protection & B_USER_PROTECTION;
203 ADD_AREA_FLAG_IF_PRESENT(B_READ_AREA, protection, "r", _output,
205 ADD_AREA_FLAG_IF_PRESENT(B_WRITE_AREA, protection, "w", _output,
207 ADD_AREA_FLAG_IF_PRESENT(B_EXECUTE_AREA, protection, "x", _output,
213 protection &= ~B_KERNEL_READ_AREA;
215 protection &= ~B_KERNEL_WRITE_AREA;
217 protection &= ~B_KERNEL_EXECUTE_AREA;
219 if ((protection & B_KERNEL_PROTECTION) != 0) {
220 ADD_AREA_FLAG_IF_PRESENT(B_KERNEL_READ_AREA, protection, "r",
222 ADD_AREA_FLAG_IF_PRESENT(B_KERNEL_WRITE_AREA, protection, "w",
224 ADD_AREA_FLAG_IF_PRESENT(B_KERNEL_EXECUTE_AREA, protection, "x",
228 ADD_AREA_FLAG_IF_PRESENT(B_STACK_AREA, protection, "s", _output, "");
229 ADD_AREA_FLAG_IF_PRESENT(B_KERNEL_STACK_AREA, protection, "s", _output, "");
230 ADD_AREA_FLAG_IF_PRESENT(B_OVERCOMMITTING_AREA, protection, _output, "o",
232 ADD_AREA_FLAG_IF_PRESENT(B_CLONEABLE_AREA, protection, "c", _output, "");
233 ADD_AREA_FLAG_IF_PRESENT(B_SHARED_AREA, protection, "S", _output, "");
234 ADD_AREA_FLAG_IF_PRESENT(B_KERNEL_AREA, protection, "k", _output, "");
236 if (protection != 0) {
239 protection);