Implements Queue.
Queue impl | Implements Queue. |
Copyright | This program is free software. |
Files | |
C-kern/ | Header file Queue. |
C-kern/ | Implementation file Queue impl. |
queue_page_t | |
static variables | |
helper | |
lifetime | |
new_queuepage | Allocates single memory page with ALLOC_PAGECACHE with size <pagesize_4096>. |
delete_queuepage | Frees single memory page with RELEASE_PAGECACHE. |
query | |
end_queuepage | Returns address after the last element on page. |
end_queuepage | Returns address after the last element on page. |
update | |
queue_t | |
helper | |
lifetime | |
update | |
test |
This program is free software. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program 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 for more details.
© 2013 Jörg Seebohn
Header file Queue.
Implementation file Queue impl.
static variables | |
helper | |
lifetime | |
new_queuepage | Allocates single memory page with ALLOC_PAGECACHE with size <pagesize_4096>. |
delete_queuepage | Frees single memory page with RELEASE_PAGECACHE. |
query | |
end_queuepage | Returns address after the last element on page. |
end_queuepage | Returns address after the last element on page. |
update |
static int new_queuepage( /*out*/queue_page_t ** qpage, queue_t * queue )
Allocates single memory page with ALLOC_PAGECACHE with size <pagesize_4096>.
static int delete_queuepage( queue_page_t ** qpage )
Frees single memory page with RELEASE_PAGECACHE.
Allocates single memory page with ALLOC_PAGECACHE with size pagesize_4096.
static int new_queuepage( /*out*/queue_page_t ** qpage, queue_t * queue )
Allocates a single memory page of size pgsize (see pagesize_e) and returns it in page.
#define ALLOC_PAGECACHE( pgsize, page ) (allocpage_pagecache(pagecache_maincontext(), (pgsize), (page)))
Frees single memory page with RELEASE_PAGECACHE.
static int delete_queuepage( queue_page_t ** qpage )
Releases previously allocated memory page.
#define RELEASE_PAGECACHE( page ) (releasepage_pagecache(pagecache_maincontext(), (page)))
Returns address after the last element on page.
static void * end_queuepage( queue_page_t * qpage )