Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 3d23553 in mainline


Ignore:
Timestamp:
2012-03-01T22:57:09Z (10 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master
Children:
5869ce0
Parents:
4546fc3
Message:

cstyle

Location:
kernel/generic/src/sysinfo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/sysinfo/stats.c

    r4546fc3 r3d23553  
    249249        ASSERT(interrupts_disabled());
    250250        ASSERT(irq_spinlock_locked(&task->lock));
    251 
     251       
    252252        stats_task->task_id = task->taskid;
    253253        str_cpy(stats_task->name, TASK_NAME_BUFLEN, task->name);
     
    350350        ASSERT(interrupts_disabled());
    351351        ASSERT(irq_spinlock_locked(&thread->lock));
    352 
     352       
    353353        stats_thread->thread_id = thread->tid;
    354354        stats_thread->task_id = thread->task->taskid;
  • kernel/generic/src/sysinfo/sysinfo.c

    r4546fc3 r3d23553  
    9999            sizeof(sysinfo_item_t), 0, sysinfo_item_constructor,
    100100            sysinfo_item_destructor, SLAB_CACHE_MAGDEFERRED);
    101 
     101       
    102102        mutex_initialize(&sysinfo_lock, MUTEX_ACTIVE);
    103103}
     
    635635        ASSERT(path);
    636636       
    637         if ((copy_from_uspace(path, ptr, size + 1) == 0)
    638             && (path[size] == 0)) {
     637        if ((copy_from_uspace(path, ptr, size + 1) == 0) &&
     638            (path[size] == 0)) {
    639639                /*
    640640                 * Prevent other functions from messing with sysinfo while we
     
    645645                mutex_unlock(&sysinfo_lock);
    646646        }
     647       
    647648        free(path);
    648649        return ret;
     
    672673       
    673674        /*
    674          * Map generated value types to constant types (user space does not care
    675          * whether the value is constant or generated).
     675         * Map generated value types to constant types (user space does
     676         * not care whether the value is constant or generated).
    676677         */
    677678        if (ret.tag == SYSINFO_VAL_FUNCTION_VAL)
     
    701702{
    702703        int rc;
    703 
     704       
    704705        /*
    705706         * Get the item.
    706707         *
    707          * N.B.: There is no need to free any potential generated binary data
    708          * since we request a dry run.
     708         * N.B.: There is no need to free any potential generated binary
     709         * data since we request a dry run.
    709710         */
    710711        sysinfo_return_t ret = sysinfo_get_item_uspace(path_ptr, path_size, true);
     
    741742         * Get the item.
    742743         *
    743          * N.B.: There is no need to free any potential generated binary data
    744          * since we request a dry run.
     744         * N.B.: There is no need to free any potential generated binary
     745         * data since we request a dry run.
    745746         */
    746747        sysinfo_return_t ret = sysinfo_get_item_uspace(path_ptr, path_size, true);
Note: See TracChangeset for help on using the changeset viewer.