|
NOVA User-Level Environment
Version testbox/changed-memory-timing-317-g320d8b5
|
Disk access helper class. More...
#include "nul/service_disk.h"Functions | |
| template<class C > | |
| alloc_cap () | |
| Disk access helper class. | |
| assert (diskconsumer) | |
| if(res) Logging unsigned | read_write_synch (bool read, unsigned disknum, uint64 start_sector, size_t size) |
| unsigned | read_synch (unsigned disknum, uint64 start_secotr, size_t size) |
| unsigned | write_synch (unsigned disknum, uint64 start_secotr, size_t size) |
| template<class C , unsigned S> | |
| char DiskHelper< C, S > ::disk_buffer[S] | ALIGNED (0x1000) |
Variables | |
| KernelSemaphore * | sem = new KernelSemaphore(sem_cap, true) |
| DiskProtocol::DiskConsumer * | diskconsumer = new (1<<12) DiskProtocol::DiskConsumer() |
| res | |
Disk access helper class.
Copyright (C) 2012, Michal Sojka sojka@os.inf.tu-dresden.de Economic rights: Technische Universitaet Dresden (Germany)
This file is part of NUL (NOVA user land).
NUL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.
NUL is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License version 2 for more details.
| char DiskHelper<C,S>::disk_buffer [S] ALIGNED | ( | 0x1000 | ) |
| alloc_cap | ( | ) |
Disk access helper class.
It encapsulates disk DMA buffer and provides synchronous read operation.
| assert | ( | diskconsumer | ) |
| unsigned read_synch | ( | unsigned | disknum, |
| uint64 | start_secotr, | ||
| size_t | size | ||
| ) |
| if (res) Logging unsigned read_write_synch | ( | bool | read, |
| unsigned | disknum, | ||
| uint64 | start_sector, | ||
| size_t | size | ||
| ) |
| unsigned write_synch | ( | unsigned | disknum, |
| uint64 | start_secotr, | ||
| size_t | size | ||
| ) |
| DiskProtocol::DiskConsumer* diskconsumer = new (1<<12) DiskProtocol::DiskConsumer() |
| res |
| KernelSemaphore* sem = new KernelSemaphore(sem_cap, true) |