Deallocation in slab backend of ported drivers

This commit is contained in:
Christian Helmuth 2016-04-21 14:38:35 +02:00
parent cd420b05ec
commit da0c467518
6 changed files with 7 additions and 11 deletions

View File

@ -114,7 +114,7 @@ class Bsd::Slab_backend_alloc : public Genode::Allocator,
return _range.alloc(size, out_addr);
}
void free(void *addr, Genode::size_t size) { }
void free(void *addr, Genode::size_t size) { _range.free(addr, size); }
Genode::size_t overhead(Genode::size_t size) const { return 0; }
bool need_size_for_free() const override { return false; }
};

View File

@ -497,7 +497,7 @@ struct Slab_backend_alloc : public Genode::Allocator,
return _range.alloc(size, out_addr);
}
void free(void *addr, Genode::size_t size) { }
void free(void *addr, Genode::size_t size) { _range.free(addr, size); }
Genode::size_t overhead(Genode::size_t size) const { return 0; }
bool need_size_for_free() const { return false; }
};

View File

@ -106,7 +106,7 @@ class Lx::Slab_backend_alloc : public Genode::Allocator,
return _range.alloc(size, out_addr);
}
void free(void *addr, size_t /* size */) override { }
void free(void *addr, size_t size) override { _range.free(addr, size); }
size_t overhead(size_t size) const override { return 0; }
bool need_size_for_free() const override { return false; }

View File

@ -115,7 +115,7 @@ class Genode::Slab_backend_alloc : public Genode::Allocator,
return _range.alloc(size, out_addr);
}
void free(void *addr, size_t /* size */) override { }
void free(void *addr, size_t size) override { _range.free(addr, size); }
size_t overhead(size_t size) const override { return 0; }
bool need_size_for_free() const override { return false; }

View File

@ -110,12 +110,8 @@ class Genode::Slab_backend_alloc : public Genode::Allocator,
return _range.alloc(size, out_addr);
}
void free(void *addr)
{
_range.free(addr);
}
void free(void *addr, size_t /* size */) override { }
void free(void *addr) { _range.free(addr); }
void free(void *addr, size_t size) override { _range.free(addr, size); }
size_t overhead(size_t size) const override { return 0; }
bool need_size_for_free() const override { return false; }

View File

@ -119,7 +119,7 @@ class Lx::Slab_backend_alloc : public Genode::Allocator,
return _range.alloc(size, out_addr);
}
void free(void *addr, size_t /* size */) override { }
void free(void *addr, size_t size) override { _range.free(addr, size); }
size_t overhead(size_t size) const override { return 0; }
bool need_size_for_free() const override { return false; }