Remove inconsistent use of 'is_' prefix

Fixes #1963
This commit is contained in:
Norman Feske
2016-05-11 18:21:47 +02:00
committed by Christian Helmuth
parent 15141f3ca7
commit 807be83b1b
225 changed files with 876 additions and 705 deletions

View File

@@ -141,12 +141,12 @@ namespace Genode {
/**
* Return true if page fault was a write fault
*/
bool is_write_fault() const { return _pf_write; }
bool write_fault() const { return _pf_write; }
/**
* Return true if last fault was an exception
*/
bool is_exception() const
bool exception() const
{
/*
* Reflection of exceptions is not supported on this platform.

View File

@@ -38,7 +38,7 @@ struct Genode::Untyped_memory
phys_alloc.alloc_aligned(num_pages*get_page_size(), &out_ptr,
get_page_size_log2());
if (alloc_ret.is_error()) {
if (alloc_ret.error()) {
PERR("%s: allocation of untyped memory failed", __FUNCTION__);
throw Phys_alloc_failed();
}

View File

@@ -61,7 +61,7 @@ Irq_session_component::Irq_session_component(Range_allocator *irq_alloc,
if (msi)
throw Root::Unavailable();
if (!irq_alloc || irq_alloc->alloc_addr(1, _irq_number).is_error()) {
if (!irq_alloc || irq_alloc->alloc_addr(1, _irq_number).error()) {
PERR("Unavailable IRQ 0x%x requested", _irq_number);
throw Root::Unavailable();
}

View File

@@ -302,7 +302,7 @@ void Platform::_init_rom_modules()
Range_allocator::Alloc_return const alloc_ret =
_unused_phys_alloc.alloc_aligned(modules_size, &out_ptr, get_page_size_log2());
if (alloc_ret.is_error()) {
if (alloc_ret.error()) {
PERR("could not reserve phys CNode space for boot modules");
struct Init_rom_modules_failed { };
throw Init_rom_modules_failed();

View File

@@ -21,6 +21,6 @@ void Rm_client::unmap(addr_t core_local_base, addr_t virt_base, size_t size)
{
Locked_ptr<Address_space> locked_address_space(_address_space);
if (locked_address_space.is_valid())
if (locked_address_space.valid())
locked_address_space->flush(virt_base, size);
}