Home
last modified time | relevance | path

Searched refs:protection (Results 1 – 25 of 140) sorted by relevance

123456

/haiku/src/system/libroot/os/
H A Darea.c16 uint32 lock, uint32 protection) in create_area() argument
19 protection |= B_EXECUTE_AREA | B_CLONEABLE_AREA; in create_area()
20 return _kern_create_area(name, address, addressSpec, size, lock, protection); in create_area()
26 uint32 protection, area_id sourceArea) in clone_area() argument
29 protection |= B_EXECUTE_AREA | B_CLONEABLE_AREA; in clone_area()
30 return _kern_clone_area(name, address, addressSpec, protection, sourceArea); in clone_area()
63 set_area_protection(area_id id, uint32 protection) in set_area_protection() argument
66 protection |= B_EXECUTE_AREA; in set_area_protection()
67 return _kern_set_area_protection(id, protection); in set_area_protection()
/haiku/headers/private/kernel/
H A DAreaKeeper.h24 size_t size, uint32 lock, uint32 protection);
26 size_t numBytes, uint32 spec, uint32 protection,
53 size_t size, uint32 lock, uint32 protection) in Create() argument
55 fArea = create_area(name, _virtualAddress, spec, size, lock, protection); in Create()
62 uint32 spec, uint32 protection, void **_virtualAddress) in Map() argument
65 protection, _virtualAddress); in Map()
/haiku/src/system/kernel/vm/
H A DVMUserArea.cpp14 uint32 protection) in VMUserArea() argument
16 VMArea(addressSpace, wiring, protection) in VMUserArea()
28 uint32 wiring, uint32 protection, uint32 allocationFlags) in Create() argument
31 addressSpace, wiring, protection); in Create()
53 area->protection = flags; in CreateReserved()
H A DVMKernelArea.cpp15 uint32 protection) in VMKernelArea() argument
17 VMArea(addressSpace, wiring, protection) in VMKernelArea()
29 uint32 wiring, uint32 protection, ObjectCache* objectCache, in Create() argument
33 addressSpace, wiring, protection); in Create()
H A Dvm.cpp267 int protection, int protectionMax, int mapping, uint32 flags,
270 static void fix_protection(uint32* protection);
534 uint32 areaProtection = area->protection in allocate_area_page_protections()
539 area->protection &= ~(B_READ_AREA | B_WRITE_AREA | B_EXECUTE_AREA in allocate_area_page_protections()
555 set_area_page_protection(VMArea* area, addr_t pageAddress, uint32 protection) in set_area_page_protection() argument
557 protection &= B_READ_AREA | B_WRITE_AREA | B_EXECUTE_AREA; in set_area_page_protection()
561 entry = (entry & 0xf0) | protection; in set_area_page_protection()
563 entry = (entry & 0x0f) | (protection << 4); in set_area_page_protection()
571 return area->protection; in get_area_page_protection()
574 uint32 protection = area->page_protections[pageIndex / 2]; in get_area_page_protection() local
[all …]
H A DVMUserArea.h19 uint32 wiring, uint32 protection);
24 uint32 protection, uint32 allocationFlags);
/haiku/src/system/kernel/arch/arm64/
H A Darch_vm.cpp108 arch_vm_supports_protection(uint32 protection) in arch_vm_supports_protection() argument
111 if ((protection & B_READ_AREA) != 0 && (protection & B_WRITE_AREA) == 0 in arch_vm_supports_protection()
112 && (protection & B_KERNEL_WRITE_AREA) != 0) { in arch_vm_supports_protection()
117 if ((protection & B_EXECUTE_AREA) != 0 in arch_vm_supports_protection()
118 && (protection & B_READ_AREA) == 0) { in arch_vm_supports_protection()
/haiku/src/kits/debugger/user_interface/util/
H A DUiUtils.cpp190 UiUtils::AreaProtectionFlagsToString(uint32 protection, BString& _output) in AreaProtectionFlagsToString() argument
193 #define ADD_AREA_FLAG_IF_PRESENT(flag, protection, name, output, missing)\ in AreaProtectionFlagsToString() argument
194 if ((protection & flag) != 0) { \ in AreaProtectionFlagsToString()
196 protection &= ~flag; \ in AreaProtectionFlagsToString()
201 uint32 userFlags = protection & B_USER_PROTECTION; in AreaProtectionFlagsToString()
203 ADD_AREA_FLAG_IF_PRESENT(B_READ_AREA, protection, "r", _output, in AreaProtectionFlagsToString()
205 ADD_AREA_FLAG_IF_PRESENT(B_WRITE_AREA, protection, "w", _output, in AreaProtectionFlagsToString()
207 ADD_AREA_FLAG_IF_PRESENT(B_EXECUTE_AREA, protection, "x", _output, in AreaProtectionFlagsToString()
213 protection &= ~B_KERNEL_READ_AREA; in AreaProtectionFlagsToString()
215 protection &= ~B_KERNEL_WRITE_AREA; in AreaProtectionFlagsToString()
[all …]
/haiku/src/kits/debugger/model/
H A DAreaInfo.cpp40 uint32 lock, uint32 protection) in AreaInfo() argument
49 fProtection(protection) in AreaInfo()
57 uint32 lock, uint32 protection) in SetTo() argument
66 fProtection = protection; in SetTo()
/haiku/headers/private/kernel/vm/
H A Dvm.h77 uint32 lock, uint32 protection, uint32 flags, uint32 guardSize,
90 size_t size, uint32 protection);
97 uint32 wiring, uint32 protection, uint32 flags, addr_t guardSize,
102 uint32 addressSpec, addr_t size, uint32 protection,
105 void** _address, uint32 addressSpec, addr_t* _size, uint32 protection,
108 uint32 addressSpec, addr_t size, uint32 protection, uint32 mapping,
117 uint32 addressSpec, uint32 protection, uint32 mapping,
164 size_t size, uint32 lock, uint32 protection);
168 size_t size, uint32 protection, uint32 mapping,
172 uint32 protection);
[all …]
/haiku/src/add-ons/kernel/drivers/dvb/cx23882/
H A Dutil.c40 map_mem(void **virt, phys_addr_t phy, size_t size, uint32 protection, in map_mem() argument
55 B_ANY_KERNEL_BLOCK_ADDRESS, protection, &mapadr); in map_mem()
74 alloc_mem(void **virt, phys_addr_t *phy, size_t size, uint32 protection, in alloc_mem() argument
86 B_32_BIT_CONTIGUOUS, protection); in alloc_mem()
H A Dutil.h30 area_id map_mem(void **virt, phys_addr_t phy, size_t size, uint32 protection,
32 area_id alloc_mem(void **virt, phys_addr_t *phy, size_t size, uint32 protection,
/haiku/src/add-ons/kernel/bus_managers/firewire/
H A Dutil.c37 alloc_mem(void **virt, void **phy, size_t size, uint32 protection, in alloc_mem() argument
50 B_32_BIT_CONTIGUOUS, protection); in alloc_mem()
75 map_mem(void **virt, void *phy, size_t size, uint32 protection, in map_mem() argument
90 B_ANY_KERNEL_BLOCK_ADDRESS, protection, &mapadr); in map_mem()
H A Dutil.h30 area_id alloc_mem(void **virt, void **phy, size_t size, uint32 protection, const char *name);
31 area_id map_mem(void **virt, void *phy, size_t size, uint32 protection, const char *name);
/haiku/src/kits/debugger/jobs/
H A DRetrieveMemoryBlockJob.cpp53 uint32 protection = 0; in Do() local
56 fMemoryBlock->BaseAddress(), protection, locking); in Do()
62 fMemoryBlock->SetWritable((protection & B_WRITE_AREA) != 0); in Do()
/haiku/src/system/libroot/posix/sys/
H A Dmman.cpp92 mmap(void* address, size_t length, int protection, int flags, int fd, in mmap() argument
128 if ((protection & PROT_READ) != 0) in mmap()
130 if ((protection & PROT_WRITE) != 0) in mmap()
132 if ((protection & PROT_EXEC) != 0) in mmap()
169 mprotect(void* address, size_t length, int protection) in mprotect() argument
172 protection)); in mprotect()
/haiku/src/add-ons/kernel/drivers/audio/generic/
H A Dutil.c73 uint32 protection; in alloc_mem() local
77 protection = B_KERNEL_READ_AREA | B_KERNEL_WRITE_AREA; in alloc_mem()
79 protection = B_READ_AREA | B_WRITE_AREA; in alloc_mem()
82 B_32_BIT_CONTIGUOUS, protection); in alloc_mem()
/haiku/src/tests/system/kernel/
H A Dset_area_protection_test1.cpp18 create_test_area(const char* name, int** address, uint32 protection) in create_test_area() argument
21 B_PAGE_SIZE, B_NO_LOCK, protection); in create_test_area()
33 clone_test_area(const char* name, int** address, uint32 protection, in clone_test_area() argument
37 protection, source); in clone_test_area()
/haiku/src/tests/system/boot/loader/
H A Dplatform_mmu.cpp14 platform_allocate_region(void **_address, size_t size, uint8 protection, in platform_allocate_region() argument
18 *_address, size, protection, exactAddress); in platform_allocate_region()
/haiku/src/system/libroot/posix/malloc/hoard2/
H A Darch-specific.cpp99 uint32 protection = B_READ_AREA | B_WRITE_AREA; in __init_heap() local
101 protection |= B_EXECUTE_AREA; in __init_heap()
104 kInitialHeapSize, B_NO_LOCK, protection); in __init_heap()
157 uint32 protection = B_READ_AREA | B_WRITE_AREA; in hoardSbrk() local
159 protection |= B_EXECUTE_AREA; in hoardSbrk()
256 B_NO_LOCK, protection); in hoardSbrk()
269 newHeapSize, B_NO_LOCK, protection); in hoardSbrk()
/haiku/src/add-ons/kernel/busses/scsi/ahci/
H A Dutil.cpp25 alloc_mem(void **virt, phys_addr_t *phy, size_t size, uint32 protection, in alloc_mem() argument
37 B_CONTIGUOUS, protection); in alloc_mem()
59 map_mem(void **virt, phys_addr_t phy, size_t size, uint32 protection, in map_mem() argument
74 B_ANY_KERNEL_BLOCK_ADDRESS, protection, &mapadr); in map_mem()
H A Dutil.h14 area_id alloc_mem(void **virt, phys_addr_t *phy, size_t size, uint32 protection,
16 area_id map_mem(void **virt, phys_addr_t phy, size_t size, uint32 protection,
/haiku/src/system/boot/platform/openfirmware/
H A Dmmu.cpp15 platform_allocate_region(void **_address, size_t size, uint8 protection, in platform_allocate_region() argument
21 void *address = arch_mmu_allocate(*_address, size, protection, in platform_allocate_region()
/haiku/src/add-ons/kernel/drivers/misc/
H A Dmem.c29 static area_id mem_map_target(off_t position, size_t length, uint32 protection,
165 mem_map_target(off_t position, size_t length, uint32 protection, in mem_map_target() argument
186 B_ANY_KERNEL_ADDRESS, protection, virtualAddress); in mem_map_target()
/haiku/headers/posix/sys/
H A Dmman.h54 void* mmap(void* address, size_t length, int protection, int flags,
58 int mprotect(void* address, size_t length, int protection);

123456