Changeset 7c3fb9b in mainline for kernel/generic/src


Ignore:
Timestamp:
2018-05-17T08:29:01Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6ff23ff
Parents:
fac0ac7
git-author:
Jiri Svoboda <jiri@…> (2018-05-16 17:28:17)
git-committer:
Jiri Svoboda <jiri@…> (2018-05-17 08:29:01)
Message:

Fix block comment formatting (ccheck).

Location:
kernel/generic/src
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/console/cmd.c

    rfac0ac7 r7c3fb9b  
    14211421        printf("%s (%s)\n", test->name, test->desc);
    14221422
    1423         /* Update and read thread accounting
    1424            for benchmarking */
     1423        /*
     1424         * Update and read thread accounting
     1425         * for benchmarking
     1426         */
    14251427        irq_spinlock_lock(&TASK->lock, true);
    14261428        uint64_t ucycles0, kcycles0;
     
    14741476                printf("%s (%u/%u) ... ", test->name, i + 1, cnt);
    14751477
    1476                 /* Update and read thread accounting
    1477                    for benchmarking */
     1478                /*
     1479                 * Update and read thread accounting
     1480                 * for benchmarking
     1481                 */
    14781482                irq_spinlock_lock(&TASK->lock, true);
    14791483                uint64_t ucycles0, kcycles0;
  • kernel/generic/src/ipc/event.c

    rfac0ac7 r7c3fb9b  
    354354 * @return ELIMIT on unknown event type.
    355355 * @return ENOENT if the notification of the given type is not
    356            subscribed.
    357  *
     356 *         subscribed.
    358357 */
    359358sys_errno_t sys_ipc_event_unsubscribe(sysarg_t evno)
  • kernel/generic/src/ipc/ipc.c

    rfac0ac7 r7c3fb9b  
    3333 */
    3434
    35 /* Lock ordering
     35/*
     36 * Lock ordering
    3637 *
    3738 * First the answerbox, then the phone.
  • kernel/generic/src/ipc/ipcrsc.c

    rfac0ac7 r7c3fb9b  
    3333 */
    3434
    35 /* IPC resources management
     35/*
     36 * IPC resources management
    3637 *
    3738 * The goal of this source code is to properly manage IPC resources and allow
  • kernel/generic/src/ipc/irq.c

    rfac0ac7 r7c3fb9b  
    514514}
    515515
    516 /* IRQ top-half handler.
     516/** IRQ top-half handler.
    517517 *
    518518 * We expect interrupts to be disabled and the irq->lock already held.
  • kernel/generic/src/lib/str.c

    rfac0ac7 r7c3fb9b  
    225225                return EINVAL;
    226226
    227         /* Unsigned version of ch (bit operations should only be done
    228            on unsigned types). */
     227        /*
     228         * Unsigned version of ch (bit operations should only be done
     229         * on unsigned types).
     230         */
    229231        uint32_t cc = (uint32_t) ch;
    230232
     
    735737 * @param ch      Character to insert to.
    736738 * @param pos     Character index where to insert.
    737  @ @param max_pos Characters in the buffer.
     739 * @param max_pos Characters in the buffer.
    738740 *
    739741 * @return True if the insertion was sucessful, false if the position
     
    934936                return EINVAL;
    935937
    936         /* Check whether we are at the end of
    937            the string in strict mode */
     938        /*
     939         * Check whether we are at the end of
     940         * the string in strict mode
     941         */
    938942        if ((strict) && (*lendptr != 0))
    939943                return EINVAL;
  • kernel/generic/src/lib/str_error.c

    rfac0ac7 r7c3fb9b  
    3131#include <str.h>
    3232
    33 /* The arrays below are automatically generated from the same file that
     33/*
     34 * The arrays below are automatically generated from the same file that
    3435 * errno.h constants are generated from. Triple-include of the same list
    3536 * with redefinitions of __errno() macro are used to ensure that the
     
    6162static int find_errno(errno_t e)
    6263{
    63         /* Just a dumb linear search.
     64        /*
     65         * Just a dumb linear search.
    6466         * There too few entries to warrant anything smarter.
    6567         */
  • kernel/generic/src/main/main.c

    rfac0ac7 r7c3fb9b  
    9595#include <cap/cap.h>
    9696
    97 /* Ensure [u]int*_t types are of correct size.
     97/*
     98 * Ensure [u]int*_t types are of correct size.
    9899 *
    99100 * Probably, this is not the best place for such tests
  • kernel/generic/src/mm/as.c

    rfac0ac7 r7c3fb9b  
    477477        if (addr >= bound) {
    478478                if (guarded) {
    479                         /* Leave an unmapped page between the lower
     479                        /*
     480                         * Leave an unmapped page between the lower
    480481                         * bound and the area's start address.
    481482                         */
     
    499500
    500501                        if (guarded || area->flags & AS_AREA_GUARD) {
    501                                 /* We must leave an unmapped page
     502                                /*
     503                                 * We must leave an unmapped page
    502504                                 * between the two areas.
    503505                                 */
  • kernel/generic/src/printf/vsnprintf.c

    rfac0ac7 r7c3fb9b  
    7070
    7171        if (left == 1) {
    72                 /* We have only one free byte left in buffer
     72                /*
     73                 * We have only one free byte left in buffer
    7374                 * -> store trailing zero
    7475                 */
     
    7980
    8081        if (left <= size) {
    81                 /* We do not have enough space for the whole string
     82                /*
     83                 * We do not have enough space for the whole string
    8284                 * with the trailing zero => print only a part
    8385                 * of string
     
    9294                }
    9395
    94                 /* Put trailing zero at end, but not count it
     96                /*
     97                 * Put trailing zero at end, but not count it
    9598                 * into data->len so it could be rewritten next time
    9699                 */
     
    104107        data->len += size;
    105108
    106         /* Put trailing zero at end, but not count it
     109        /*
     110         * Put trailing zero at end, but not count it
    107111         * into data->len so it could be rewritten next time
    108112         */
     
    140144
    141145                if (left == 1) {
    142                         /* We have only one free byte left in buffer
     146                        /*
     147                         * We have only one free byte left in buffer
    143148                         * -> store trailing zero
    144149                         */
     
    154159        }
    155160
    156         /* Put trailing zero at end, but not count it
     161        /*
     162         * Put trailing zero at end, but not count it
    157163         * into data->len so it could be rewritten next time
    158164         */
  • kernel/generic/src/proc/thread.c

    rfac0ac7 r7c3fb9b  
    621621void thread_sleep(uint32_t sec)
    622622{
    623         /* Sleep in 1000 second steps to support
    624            full argument range */
     623        /*
     624         * Sleep in 1000 second steps to support
     625         * full argument range
     626         */
    625627        while (sec > 0) {
    626628                uint32_t period = (sec > 1000) ? 1000 : sec;
  • kernel/generic/src/synch/waitq.c

    rfac0ac7 r7c3fb9b  
    441441        THREAD->sleep_queue = wq;
    442442
    443         /* Must be before entry to scheduler, because there are multiple
     443        /*
     444         * Must be before entry to scheduler, because there are multiple
    444445         * return vectors.
    445446         */
  • kernel/generic/src/synch/workqueue.c

    rfac0ac7 r7c3fb9b  
    424424 *                  until func() is entered.
    425425 * @param func      User supplied function to invoke in a worker thread.
    426 
     426 *
    427427 * @return false if work queue is shutting down; function is not
    428428 *               queued for further processing.
     
    444444 *                  until func() is entered.
    445445 * @param func      User supplied function to invoke in a worker thread.
    446 
     446 *
    447447 * @return false if work queue is shutting down; function is not
    448448 *               queued for further processing.
     
    469469 * @param func      User supplied function to invoke in a worker thread.
    470470 * @param can_block May adding this work item block?
    471 
     471 *
    472472 * @return false if work queue is shutting down; function is not
    473473 *               queued for further processing.
  • kernel/generic/src/sysinfo/stats.c

    rfac0ac7 r7c3fb9b  
    222222}
    223223
    224 /* Produce task statistics
     224/** Produce task statistics
    225225 *
    226226 * Summarize task information into task statistics.
     
    324324}
    325325
    326 /* Produce thread statistics
     326/** Produce thread statistics
    327327 *
    328328 * Summarize thread information into thread statistics.
  • kernel/generic/src/sysinfo/sysinfo.c

    rfac0ac7 r7c3fb9b  
    232232                        i++;
    233233
    234                 /* Check for perfect name and path match
     234                /*
     235                 * Check for perfect name and path match
    235236                 * -> item is already present.
    236237                 */
     
    251252                                    &(cur->subtree.table));
    252253                        default:
    253                                 /* Subtree items handled by a function, this
     254                                /*
     255                                 * Subtree items handled by a function, this
    254256                                 * cannot be overriden by a constant item.
    255257                                 */
     
    258260                }
    259261
    260                 /* No match and no more siblings to check
     262                /*
     263                 * No match and no more siblings to check
    261264                 * -> create a new sibling item.
    262265                 */
     
    457460        sysinfo_item_t *item = sysinfo_create_path(name, root);
    458461
    459         /* Change the type of the subtree only if it is not already
    460            a fixed subtree */
     462        /*
     463         * Change the type of the subtree only if it is not already
     464         * a fixed subtree
     465         */
    461466        if ((item != NULL) && (item->subtree_type != SYSINFO_SUBTREE_TABLE)) {
    462467                item->subtree_type = SYSINFO_SUBTREE_FUNCTION;
     
    559564void sysinfo_dump(sysinfo_item_t *root)
    560565{
    561         /* Avoid other functions to mess with sysinfo
    562            while we are dumping it */
     566        /*
     567         * Avoid other functions to mess with sysinfo
     568         * while we are dumping it
     569         */
    563570        mutex_lock(&sysinfo_lock);
    564571
Note: See TracChangeset for help on using the changeset viewer.