mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-19 07:38:28 +00:00
@ -20,10 +20,10 @@
|
||||
|
||||
namespace Block {
|
||||
|
||||
typedef Genode::uint64_t block_number_t;
|
||||
typedef Genode::size_t block_count_t;
|
||||
typedef Genode::off_t off_t;
|
||||
typedef Genode::uint64_t seek_off_t;
|
||||
using block_number_t = Genode::uint64_t;
|
||||
using block_count_t = Genode::size_t;
|
||||
using off_t = Genode::off_t;
|
||||
using seek_off_t = Genode::uint64_t;
|
||||
|
||||
struct Operation;
|
||||
struct Request;
|
||||
|
@ -111,7 +111,7 @@ class Block::Request_stream : Genode::Noncopyable
|
||||
|
||||
Packet_stream_tx::Rpc_object<Block::Session::Tx> _tx;
|
||||
|
||||
typedef Genode::Packet_stream_sink<Block::Session::Tx_policy> Tx_sink;
|
||||
using Tx_sink = Genode::Packet_stream_sink<Block::Session::Tx_policy>;
|
||||
|
||||
Payload const _payload;
|
||||
|
||||
@ -182,7 +182,7 @@ class Block::Request_stream : Genode::Noncopyable
|
||||
if (!tx_sink.packet_avail())
|
||||
return;
|
||||
|
||||
typedef Block::Packet_descriptor Packet_descriptor;
|
||||
using Packet_descriptor = Block::Packet_descriptor;
|
||||
|
||||
Packet_descriptor const packet = tx_sink.peek_packet();
|
||||
|
||||
@ -261,7 +261,7 @@ class Block::Request_stream : Genode::Noncopyable
|
||||
return;
|
||||
}
|
||||
|
||||
typedef Block::Packet_descriptor Packet_descriptor;
|
||||
using Packet_descriptor = Block::Packet_descriptor;
|
||||
Packet_descriptor::Payload
|
||||
payload { .offset = request.offset,
|
||||
.bytes = request.operation.count * _block_size };
|
||||
|
Reference in New Issue
Block a user