diff options
author | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2019-10-16 15:19:12 +0300 |
---|---|---|
committer | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2019-10-16 15:19:12 +0300 |
commit | 8aa7070561256f147aa5bb6c20b7c5ae4370fb0f (patch) | |
tree | 578fdad70efabbb6a596a47ce6f9bd8ce7558d85 /example | |
parent | 5cc6420a3faa9ac87c769a014afefbbe5bc9ba83 (diff) |
Add reservation to mapped_temp_inode().
Replace bless emulation with start_lifetime_as, which is the new naming.
Diffstat (limited to 'example')
-rw-r--r-- | example/use_cases.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/example/use_cases.cpp b/example/use_cases.cpp index 388622a8..ac632333 100644 --- a/example/use_cases.cpp +++ b/example/use_cases.cpp @@ -215,7 +215,7 @@ void malloc1() size_t len = mh.length(); // map_handle::address() returns indeterminate bytes, so you need to bless // them into existence before use - llfio::bless(p, len); + new(p) llfio::byte[len]; memset(p, 'a', len); // Tell the kernel to throw away the contents of any whole pages |