mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 05:37:54 +00:00
Deallocation in slab backend of ported drivers
This commit is contained in:
parent
cd420b05ec
commit
da0c467518
@ -114,7 +114,7 @@ class Bsd::Slab_backend_alloc : public Genode::Allocator,
|
|||||||
return _range.alloc(size, out_addr);
|
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; }
|
Genode::size_t overhead(Genode::size_t size) const { return 0; }
|
||||||
bool need_size_for_free() const override { return false; }
|
bool need_size_for_free() const override { return false; }
|
||||||
};
|
};
|
||||||
|
@ -497,7 +497,7 @@ struct Slab_backend_alloc : public Genode::Allocator,
|
|||||||
return _range.alloc(size, out_addr);
|
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; }
|
Genode::size_t overhead(Genode::size_t size) const { return 0; }
|
||||||
bool need_size_for_free() const { return false; }
|
bool need_size_for_free() const { return false; }
|
||||||
};
|
};
|
||||||
|
@ -106,7 +106,7 @@ class Lx::Slab_backend_alloc : public Genode::Allocator,
|
|||||||
return _range.alloc(size, out_addr);
|
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; }
|
size_t overhead(size_t size) const override { return 0; }
|
||||||
bool need_size_for_free() const override { return false; }
|
bool need_size_for_free() const override { return false; }
|
||||||
|
|
||||||
|
@ -115,7 +115,7 @@ class Genode::Slab_backend_alloc : public Genode::Allocator,
|
|||||||
return _range.alloc(size, out_addr);
|
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; }
|
size_t overhead(size_t size) const override { return 0; }
|
||||||
bool need_size_for_free() const override { return false; }
|
bool need_size_for_free() const override { return false; }
|
||||||
|
|
||||||
|
@ -110,12 +110,8 @@ class Genode::Slab_backend_alloc : public Genode::Allocator,
|
|||||||
return _range.alloc(size, out_addr);
|
return _range.alloc(size, out_addr);
|
||||||
}
|
}
|
||||||
|
|
||||||
void free(void *addr)
|
void free(void *addr) { _range.free(addr); }
|
||||||
{
|
void free(void *addr, size_t size) override { _range.free(addr, size); }
|
||||||
_range.free(addr);
|
|
||||||
}
|
|
||||||
|
|
||||||
void free(void *addr, size_t /* size */) override { }
|
|
||||||
size_t overhead(size_t size) const override { return 0; }
|
size_t overhead(size_t size) const override { return 0; }
|
||||||
bool need_size_for_free() const override { return false; }
|
bool need_size_for_free() const override { return false; }
|
||||||
|
|
||||||
|
@ -119,7 +119,7 @@ class Lx::Slab_backend_alloc : public Genode::Allocator,
|
|||||||
return _range.alloc(size, out_addr);
|
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; }
|
size_t overhead(size_t size) const override { return 0; }
|
||||||
bool need_size_for_free() const override { return false; }
|
bool need_size_for_free() const override { return false; }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user