/kernel/trunk/generic/src/mm/frame.c |
---|
27,12 → 27,8 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup genericmm |
* @{ |
*/ |
/** |
* @file |
* @file frame.c |
* @brief Physical frame allocator. |
* |
* This file contains the physical frame allocator and memory zone management. |
1149,7 → 1145,3 |
interrupts_restore(ipl); |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/mm/slab.c |
---|
26,12 → 26,8 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup genericmm |
* @{ |
*/ |
/** |
* @file |
* @file slab.c |
* @brief Slab allocator. |
* |
* The slab allocator is closely modelled after OpenSolaris slab allocator. |
906,7 → 902,3 |
slab = obj2slab(obj); |
_slab_free(slab->cache, obj, slab); |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/mm/as.c |
---|
26,19 → 26,8 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @defgroup mm Memory management |
* @ingroup kernel |
* @{ |
* @} |
*/ |
/** @addtogroup genericmm generic |
* @ingroup mm |
* @{ |
*/ |
/** |
* @file |
* @file as.c |
* @brief Address space related functions. |
* |
* This file contains address space manipulation functions. |
1535,7 → 1524,3 |
{ |
return (__native) as_area_destroy(AS, address); |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/mm/backend_elf.c |
---|
26,12 → 26,8 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup genericmm |
* @{ |
*/ |
/** |
* @file |
* @file backend_elf.c |
* @brief Backend for address space areas backed by an ELF image. |
*/ |
304,7 → 300,3 |
} |
mutex_unlock(&area->sh_info->lock); |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/mm/backend_anon.c |
---|
26,12 → 26,8 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup genericmm |
* @{ |
*/ |
/** |
* @file |
* @file backend_anon.c |
* @brief Backend for anonymous memory address space areas. |
* |
*/ |
204,7 → 200,3 |
} |
mutex_unlock(&area->sh_info->lock); |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/mm/backend_phys.c |
---|
26,12 → 26,8 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup genericmm |
* @{ |
*/ |
/** |
* @file |
* @file backend_elf.c |
* @brief Backend for address space areas backed by continuous physical memory. |
*/ |
90,7 → 86,3 |
void phys_share(as_area_t *area) |
{ |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/mm/tlb.c |
---|
26,12 → 26,8 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup genericmm |
* @{ |
*/ |
/** |
* @file |
* @file tlb.c |
* @brief Generic TLB shootdown algorithm. |
* |
* The algorithm implemented here is based on the CMU TLB shootdown |
184,7 → 180,3 |
} |
#endif /* CONFIG_SMP */ |
/** @} |
*/ |
/kernel/trunk/generic/src/mm/buddy.c |
---|
26,12 → 26,8 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup genericmm |
* @{ |
*/ |
/** |
* @file |
* @file buddy.c |
* @brief Buddy allocator framework. |
* |
* This file contains buddy system allocator framework. |
320,7 → 316,3 |
printf("Buddy system contains %zd free elements (%zd blocks)\n" , elem_count, block_count); |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/mm/page.c |
---|
26,12 → 26,8 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup genericmm |
* @{ |
*/ |
/** |
* @file |
* @file page.c |
* @brief Virtual Address Translation subsystem. |
* |
* This file contains code for creating, destroying and searching |
138,7 → 134,3 |
return page_mapping_operations->mapping_find(as, page); |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/ipc/ipcrsc.c |
---|
26,12 → 26,6 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup genericipc |
* @{ |
*/ |
/** @file |
*/ |
/* IPC resources management |
* |
* The goal of this source code is to properly manage IPC resources |
212,7 → 206,3 |
ASSERT(phone->state == IPC_PHONE_CONNECTING); |
ipc_phone_connect(phone, box); |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/ipc/irq.c |
---|
26,12 → 26,6 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup genericipc |
* @{ |
*/ |
/** @file |
*/ |
/** IRQ notification framework |
* |
* This framework allows applications to register to receive a notification |
333,7 → 327,3 |
interrupts_restore(ipl); |
} |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/ipc/sysipc.c |
---|
26,12 → 26,6 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup genericipc |
* @{ |
*/ |
/** @file |
*/ |
#include <arch.h> |
#include <proc/task.h> |
#include <proc/thread.h> |
591,7 → 585,3 |
return 0; |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/ipc/ipc.c |
---|
26,14 → 26,6 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup genericipc IPC |
* @ingroup kernel |
* @brief Interprocess communication protocol |
* @{ |
*/ |
/** @file |
*/ |
/* Lock ordering |
* |
* First the answerbox, then the phone |
531,7 → 523,3 |
spinlock_unlock(&task->answerbox.lock); |
spinlock_unlock(&task->lock); |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/console/cmd.c |
---|
26,10 → 26,6 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup genericconsole |
* @{ |
*/ |
/** |
* @file cmd.c |
* @brief Kernel console command wrappers. |
64,7 → 60,7 |
#include <proc/task.h> |
#include <ipc/ipc.h> |
/* Data and methods for 'help' command. */ |
/** Data and methods for 'help' command. */ |
static int cmd_help(cmd_arg_t *argv); |
static cmd_info_t help_info = { |
.name = "help", |
87,7 → 83,7 |
.argc = 0 |
}; |
/* Data and methods for 'description' command. */ |
/** Data and methods for 'description' command. */ |
static int cmd_desc(cmd_arg_t *argv); |
static void desc_help(void); |
static char desc_buf[MAX_CMDLINE+1]; |
105,7 → 101,7 |
.argv = &desc_argv |
}; |
/* Data and methods for 'symaddr' command. */ |
/** Data and methods for 'symaddr' command. */ |
static int cmd_symaddr(cmd_arg_t *argv); |
static char symaddr_buf[MAX_CMDLINE+1]; |
static cmd_arg_t symaddr_argv = { |
141,7 → 137,7 |
.argv = set4_argv |
}; |
/* Data and methods for 'call0' command. */ |
/** Data and methods for 'call0' command. */ |
static char call0_buf[MAX_CMDLINE+1]; |
static char carg1_buf[MAX_CMDLINE+1]; |
static char carg2_buf[MAX_CMDLINE+1]; |
161,7 → 157,7 |
.argv = &call0_argv |
}; |
/* Data and methods for 'call1' command. */ |
/** Data and methods for 'call1' command. */ |
static int cmd_call1(cmd_arg_t *argv); |
static cmd_arg_t call1_argv[] = { |
{ |
183,7 → 179,7 |
.argv = call1_argv |
}; |
/* Data and methods for 'call2' command. */ |
/** Data and methods for 'call2' command. */ |
static int cmd_call2(cmd_arg_t *argv); |
static cmd_arg_t call2_argv[] = { |
{ |
210,7 → 206,7 |
.argv = call2_argv |
}; |
/* Data and methods for 'call3' command. */ |
/** Data and methods for 'call3' command. */ |
static int cmd_call3(cmd_arg_t *argv); |
static cmd_arg_t call3_argv[] = { |
{ |
243,7 → 239,7 |
.argv = call3_argv |
}; |
/* Data and methods for 'halt' command. */ |
/** Data and methods for 'halt' command. */ |
static int cmd_halt(cmd_arg_t *argv); |
static cmd_info_t halt_info = { |
.name = "halt", |
252,7 → 248,7 |
.argc = 0 |
}; |
/* Data and methods for 'tlb' command. */ |
/** Data and methods for 'tlb' command. */ |
static int cmd_tlb(cmd_arg_t *argv); |
cmd_info_t tlb_info = { |
.name = "tlb", |
296,7 → 292,7 |
.argc = 0 |
}; |
/* Data and methods for 'zones' command */ |
/** Data and methods for 'zones' command */ |
static int cmd_zones(cmd_arg_t *argv); |
static cmd_info_t zones_info = { |
.name = "zones", |
305,7 → 301,7 |
.argc = 0 |
}; |
/* Data and methods for 'ipc_task' command */ |
/** Data and methods for 'ipc_task' command */ |
static int cmd_ipc_task(cmd_arg_t *argv); |
static cmd_arg_t ipc_task_argv = { |
.type = ARG_TYPE_INT, |
318,7 → 314,7 |
.argv = &ipc_task_argv |
}; |
/* Data and methods for 'zone' command */ |
/** Data and methods for 'zone' command */ |
static int cmd_zone(cmd_arg_t *argv); |
static cmd_arg_t zone_argv = { |
.type = ARG_TYPE_INT, |
332,7 → 328,7 |
.argv = &zone_argv |
}; |
/* Data and methods for 'cpus' command. */ |
/** Data and methods for 'cpus' command. */ |
static int cmd_cpus(cmd_arg_t *argv); |
cmd_info_t cpus_info = { |
.name = "cpus", |
343,7 → 339,7 |
.argv = NULL |
}; |
/* Data and methods for 'version' command. */ |
/** Data and methods for 'version' command. */ |
static int cmd_version(cmd_arg_t *argv); |
cmd_info_t version_info = { |
.name = "version", |
803,7 → 799,3 |
arch_release_console(); |
return 1; |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/console/klog.c |
---|
26,14 → 26,6 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup genericklog KLog |
* @brief Kernel logging facility |
* @ingroup kernel |
* @{ |
*/ |
/** @file |
*/ |
#include <mm/frame.h> |
#include <sysinfo/sysinfo.h> |
#include <console/klog.h> |
106,7 → 98,3 |
va_end(args); |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/console/kconsole.c |
---|
26,10 → 26,6 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup genericconsole |
* @{ |
*/ |
/** |
* @file kconsole.c |
* @brief Kernel console. |
625,7 → 621,3 |
return found_start; |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/console/console.c |
---|
27,12 → 27,6 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup genericconsole |
* @{ |
*/ |
/** @file |
*/ |
#include <console/console.h> |
#include <console/chardev.h> |
#include <synch/waitq.h> |
164,7 → 158,3 |
if (stdout->op->write) |
stdout->op->write(stdout, c); |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/console/chardev.c |
---|
26,13 → 26,6 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup genericconsole Console |
* @ingroup kernel |
* @{ |
*/ |
/** @file |
*/ |
#include <console/chardev.h> |
#include <putchar.h> |
#include <synch/waitq.h> |
74,7 → 67,3 |
waitq_wakeup(&chardev->wq, WAKEUP_FIRST); |
spinlock_unlock(&chardev->lock); |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/proc/task.c |
---|
26,12 → 26,8 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup genericproc |
* @{ |
*/ |
/** |
* @file |
* @file task.c |
* @brief Task management. |
*/ |
494,7 → 490,3 |
thread_detach(t); |
task_kill(TASK->taskid); |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/proc/thread.c |
---|
26,12 → 26,8 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup genericproc |
* @{ |
*/ |
/** |
* @file |
* @file thread.c |
* @brief Thread management functions. |
*/ |
612,7 → 608,3 |
/* Unreachable */ |
return 0; |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/proc/scheduler.c |
---|
26,20 → 26,8 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** |
* @defgroup proc Proc |
* @ingroup kernel |
* @{ |
* @} |
*/ |
/** @addtogroup genericproc generic |
* @ingroup proc |
* @{ |
*/ |
/** |
* @file |
* @file scheduler.c |
* @brief Scheduler and load balancing. |
* |
* This file contains the scheduler and kcpulb kernel thread which |
704,7 → 692,3 |
interrupts_restore(ipl); |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/proc/the.c |
---|
26,12 → 26,8 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup genericproc |
* @{ |
*/ |
/** |
* @file |
* @file the.c |
* @brief THE structure functions. |
* |
* This file contains functions to manage the THE structure. |
71,7 → 67,3 |
{ |
*dst = *src; |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/synch/waitq.c |
---|
26,12 → 26,8 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup sync |
* @{ |
*/ |
/** |
* @file |
* @file waitq.c |
* @brief Wait queue. |
* |
* Wait queue is the basic synchronization primitive upon which all |
449,7 → 445,3 |
if (all) |
goto loop; |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/synch/spinlock.c |
---|
26,12 → 26,8 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup sync |
* @{ |
*/ |
/** |
* @file |
* @file spinlock.c |
* @brief Spinlocks. |
*/ |
157,7 → 153,3 |
} |
#endif |
/** @} |
*/ |
/kernel/trunk/generic/src/synch/futex.c |
---|
26,12 → 26,8 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup sync |
* @{ |
*/ |
/** |
* @file |
* @file futex.c |
* @brief Kernel backend for futexes. |
*/ |
334,7 → 330,3 |
mutex_unlock(&TASK->futexes_lock); |
rwlock_write_unlock(&futex_ht_lock); |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/synch/rwlock.c |
---|
26,12 → 26,8 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup sync |
* @{ |
*/ |
/** |
* @file |
* @file rwlock.c |
* @brief Reader/Writer locks. |
* |
* A reader/writer lock can be held by multiple readers at a time. |
383,7 → 379,3 |
{ |
spinlock_unlock((spinlock_t *) arg); |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/synch/mutex.c |
---|
26,12 → 26,8 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup sync |
* @{ |
*/ |
/** |
* @file |
* @file mutex.c |
* @brief Mutexes. |
*/ |
80,7 → 76,3 |
semaphore_up(&mtx->sem); |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/synch/semaphore.c |
---|
26,12 → 26,8 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup sync |
* @{ |
*/ |
/** |
* @file |
* @file semaphore.c |
* @brief Semaphores. |
*/ |
93,7 → 89,3 |
{ |
waitq_wakeup(&s->wq, WAKEUP_FIRST); |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/synch/condvar.c |
---|
26,13 → 26,8 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup sync Synchronization |
* @ingroup kernel |
* @{ |
*/ |
/** |
* @file |
* @file condvar.c |
* @brief Condition variables. |
*/ |
104,7 → 99,3 |
return rc; |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/main/kinit.c |
---|
26,13 → 26,8 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup main |
* @ingroup kernel |
* @{ |
*/ |
/** |
* @file |
* @file kinit.c |
* @brief Kernel initialization thread. |
* |
* This file contains kinit kernel thread which carries out |
195,7 → 190,3 |
#endif /* CONFIG_TEST */ |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/main/main.c |
---|
26,12 → 26,8 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup main |
* @{ |
*/ |
/** |
* @file |
* @file main.c |
* @brief Main initialization kernel function for all processors. |
* |
* During kernel boot, all processors, after architecture dependent |
323,7 → 319,3 |
/* not reached */ |
} |
#endif /* CONFIG_SMP */ |
/** @} |
*/ |
/kernel/trunk/generic/src/main/uinit.c |
---|
26,12 → 26,8 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup main |
* @{ |
*/ |
/** |
* @file |
* @file uinit.c |
* @brief Userspace bootstrap thread. |
* |
* This file contains uinit kernel thread wich is used to start every |
64,7 → 60,3 |
userspace(&uarg); |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/main/version.c |
---|
26,12 → 26,6 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup main |
* @{ |
*/ |
/** @file |
*/ |
#include <main/version.h> |
#include <print.h> |
58,7 → 52,3 |
{ |
printf("%s, release %s (%s)%s\nBuilt%s for %s\n%s\n", project, release, name, revision, timestamp, arch, copyright); |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/lib/memstr.c |
---|
26,12 → 26,8 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup generic |
* @{ |
*/ |
/** |
* @file |
* @file memstr.c |
* @brief Memory string operations. |
* |
* This file provides architecture independent functions |
114,7 → 110,3 |
for(i=0; i<cnt; i++) |
p[i] = x; |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/lib/elf.c |
---|
27,12 → 27,8 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup generic |
* @{ |
*/ |
/** |
* @file |
* @file elf.c |
* @brief Kernel ELF loader. |
*/ |
220,7 → 216,3 |
return EE_OK; |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/lib/sort.c |
---|
26,12 → 26,8 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup generic |
* @{ |
*/ |
/** |
* @file |
* @file sort.c |
* @brief Sorting functions. |
* |
* This files contains functions implementing several sorting |
198,7 → 194,3 |
{ |
return (* (__u32 *) a > * (__u32 *)b) ? 1 : (*(__u32 *)a < * (__u32 *)b) ? -1 : 0; |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/lib/func.c |
---|
26,12 → 26,8 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup generic |
* @{ |
*/ |
/** |
* @file |
* @file func.c |
* @brief Miscellaneous functions. |
*/ |
191,7 → 187,3 |
return result; |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/printf/vsnprintf.c |
---|
26,12 → 26,6 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup generic |
* @{ |
*/ |
/** @file |
*/ |
#include <print.h> |
#include <printf/printf_core.h> |
#include <memstr.h> |
99,7 → 93,3 |
/* vsnprintf_write ensures that str will be terminated by zero. */ |
return printf_core(fmt, &ps, ap); |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/printf/printf_core.c |
---|
27,11 → 27,8 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup generic |
* @{ |
*/ |
/** |
* @file |
* @file print.c |
* @brief Printing functions. |
*/ |
103,7 → 100,7 |
* @param buf Buffer with size at least count bytes - NULL pointer NOT allowed! |
* @param count |
* @param ps output method and its data |
* @return number of printed characters |
* @return number or printed characters |
*/ |
static int printf_putnchars(const char * buf, size_t count, struct printf_spec *ps) |
{ |
113,7 → 110,7 |
/** Print string without added newline |
* @param str string to print |
* @param ps write function specification and support data |
* @return number of printed characters |
* @return number or printed characters |
*/ |
static int printf_putstr(const char * str, struct printf_spec *ps) |
{ |
131,7 → 128,7 |
/** Print one character to output |
* @param c one character |
* @param ps output method |
* @return number of printed characters |
* @return number or printed characters |
*/ |
static int printf_putchar(int c, struct printf_spec *ps) |
{ |
152,6 → 149,7 |
if (!(flags & __PRINTF_FLAG_LEFTALIGNED)) { |
while (--width > 0) { /* one space is consumed by character itself hence predecrement */ |
/* FIXME: painful slow */ |
if (printf_putchar(' ', ps) > 0) |
++counter; |
} |
718,7 → 716,3 |
return counter; |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/printf/printf.c |
---|
26,12 → 26,6 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup generic |
* @{ |
*/ |
/** @file |
*/ |
#include <print.h> |
int printf(const char *fmt, ...) |
48,7 → 42,3 |
return ret; |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/printf/snprintf.c |
---|
26,12 → 26,6 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup generic |
* @{ |
*/ |
/** @file |
*/ |
#include <print.h> |
#include <printf/printf_core.h> |
47,7 → 41,3 |
return ret; |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/printf/sprintf.c |
---|
26,12 → 26,6 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup generic |
* @{ |
*/ |
/** @file |
*/ |
#include <print.h> |
int sprintf(char *str, const char *fmt, ...) |
46,7 → 40,3 |
return ret; |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/printf/vprintf.c |
---|
26,12 → 26,6 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup generic |
* @{ |
*/ |
/** @file |
*/ |
#include <print.h> |
#include <printf/printf_core.h> |
#include <putchar.h> |
54,7 → 48,3 |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/printf/vsprintf.c |
---|
26,12 → 26,6 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup generic |
* @{ |
*/ |
/** @file |
*/ |
#include <print.h> |
int vsprintf(char *str, const char *fmt, va_list ap) |
39,7 → 33,3 |
return vsnprintf(str, (size_t)-1, fmt, ap); |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/interrupt/interrupt.c |
---|
25,18 → 25,9 |
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @defgroup interrupt Interrupt |
* @ingroup kernel |
* @{ |
* @} |
*/ |
/** @addtogroup genericinterrupt generic |
* @ingroup interrupt |
* @{ |
*/ |
/** |
* @file |
* @file interrupt.c |
* @brief Interrupt redirector. |
* |
* This file provides means of registering interrupt handlers |
155,7 → 146,3 |
panic("could not register command %s\n", exc_info.name); |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/syscall/syscall.c |
---|
26,12 → 26,8 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup generic |
* @{ |
*/ |
/** |
* @file |
* @file syscall.c |
* @brief Syscall table and syscall wrappers. |
*/ |
158,7 → 154,3 |
/* Debug calls */ |
sys_debug_enable_console |
}; |
/** @} |
*/ |
/kernel/trunk/generic/src/syscall/copy.c |
---|
25,13 → 25,9 |
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup generic |
* @{ |
*/ |
/** |
* @file |
* @file copy.c |
* @brief Copying between kernel and userspace. |
* |
* This file contains sanitized functions for copying data |
127,7 → 123,3 |
interrupts_restore(ipl); |
return !rc ? EPERM : 0; |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/ddi/ddi.c |
---|
25,20 → 25,9 |
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @defgroup ddi Device Driver Interface |
* @ingroup kernel |
* @{ |
* @} |
*/ |
/** @addtogroup genericddi generic |
* @ingroup ddi |
* @{ |
*/ |
/** |
* @file |
* @file ddi.c |
* @brief Device Driver Interface functions. |
* |
* This file contains functions that comprise the Device Driver Interface. |
209,7 → 198,3 |
preemption_disable(); |
return 0; |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/security/cap.c |
---|
26,10 → 26,6 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup generic |
* @{ |
*/ |
/** |
* @file cap.c |
* @brief Capabilities control. |
179,7 → 175,3 |
interrupts_restore(ipl); |
return 0; |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/adt/bitmap.c |
---|
26,10 → 26,6 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup genericadt ADT |
* @ingroup kernel |
* @{ |
*/ |
/** |
* @file bitmap.c |
* @brief Implementation of bitmap ADT. |
185,7 → 181,3 |
dst->map[i] |= src->map[i] & ((1 << (bits % 8)) - 1); |
} |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/adt/btree.c |
---|
26,10 → 26,6 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup genericadt |
* @{ |
*/ |
/** |
* @file btree.c |
* @brief B+tree implementation. |
997,7 → 993,3 |
} |
printf("\n"); |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/adt/hash_table.c |
---|
26,10 → 26,6 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup genericadt |
* @{ |
*/ |
/** |
* @file hash_table.c |
* @brief Implementation of generic chained hash table. |
172,7 → 168,3 |
} |
} |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/adt/list.c |
---|
26,10 → 26,6 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup genericadt |
* @{ |
*/ |
/** |
* @file list.c |
* @brief Functions completing doubly linked circular list implementaion. |
89,7 → 85,3 |
head1->prev = head2->prev; |
list_initialize(head2); |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/time/clock.c |
---|
26,18 → 26,8 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @defgroup others Others |
* @ingroup kernel |
* @{ |
* @} |
*/ |
/** @addtogroup generic |
* @{ |
*/ |
/** |
* @file |
* @file clock.c |
* @brief High-level clock interrupt handler. |
* |
* This file contains the clock() function which is the source |
192,7 → 182,3 |
} |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/time/delay.c |
---|
26,12 → 26,8 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup generic |
* @{ |
*/ |
/** |
* @file |
* @file delay.c |
* @brief Active delay function. |
*/ |
63,7 → 59,3 |
asm_delay_loop(usec * CPU->delay_loop_const); |
interrupts_restore(ipl); |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/time/timeout.c |
---|
26,12 → 26,8 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup generic |
* @{ |
*/ |
/** |
* @file |
* @file timeout.c |
* @brief Timeout management functions. |
*/ |
213,7 → 209,3 |
interrupts_restore(ipl); |
return true; |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/sysinfo/sysinfo.c |
---|
26,12 → 26,6 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup generic |
* @{ |
*/ |
/** @file |
*/ |
#include <sysinfo/sysinfo.h> |
#include <mm/slab.h> |
#include <print.h> |
305,7 → 299,3 |
free(str); |
return ret.val; |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/smp/ipi.c |
---|
26,12 → 26,8 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup generic |
* @{ |
*/ |
/** |
* @file |
* @file ipi.c |
* @brief Generic IPI interface. |
*/ |
65,7 → 61,3 |
} |
#endif /* CONFIG_SMP */ |
/** @} |
*/ |
/kernel/trunk/generic/src/debug/symtab.c |
---|
26,20 → 26,8 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @defgroup debug Debug |
* @ingroup kernel |
* @{ |
* @} |
*/ |
/** @addtogroup genericdebug generic |
* @ingroup debug |
* @{ |
*/ |
/** |
* @file |
* @file symtab.c |
* @brief Kernel symbol resolver. |
*/ |
204,7 → 192,3 |
return found; |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/cpu/cpu.c |
---|
1,4 → 1,4 |
/* |
/* |
* Copyright (C) 2001-2004 Jakub Jermar |
* All rights reserved. |
* |
26,19 → 26,8 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @defgroup cpu CPU |
* @ingroup kernel |
* @{ |
* @} |
*/ |
/** @addtogroup genericcpu generic |
* @ingroup cpu |
* @{ |
*/ |
/** |
* @file |
* @file cpu.c |
* @brief CPU subsystem initialization and listing. |
*/ |
115,7 → 104,3 |
printf("cpu%d: not active\n", i); |
} |
} |
/** @} |
*/ |
/kernel/trunk/generic/src/preempt/preemption.c |
---|
26,10 → 26,6 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup generic |
* @{ |
*/ |
/** |
* @file preemption.c |
* @brief Preemption control. |
55,7 → 51,3 |
memory_barrier(); |
THE->preemption_disabled--; |
} |
/** @} |
*/ |