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

Changeset 9a426d1f in mainline for abi/include/sysinfo.h


Ignore:
Timestamp:
2011-08-28T18:48:21Z (10 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master
Children:
19fc04c
Parents:
dc6b148
Message:

more kernel/uspace ABI unification:
bool, task_id_t, thread_id_t, state_t, SYS_SYSINFO_GET_TAG → SYS_SYSINFO_GET_VAL_TYPE, sysinfo_item_val_type_t

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abi/include/sysinfo.h

    rdc6b148 r9a426d1f  
    3737#define ABI_SYSINFO_H_
    3838
     39#include <abi/proc/task.h>
     40#include <abi/proc/thread.h>
     41
    3942/** Number of load components */
    4043#define LOAD_STEPS  3
     
    4447#define EXC_NAME_BUFLEN   20
    4548
    46 /** Thread states */
     49/** Item value type
     50 *
     51 */
    4752typedef enum {
    48         /** It is an error, if thread is found in this state. */
    49         Invalid,
    50         /** State of a thread that is currently executing on some CPU. */
    51         Running,
    52         /** Thread in this state is waiting for an event. */
    53         Sleeping,
    54         /** State of threads in a run queue. */
    55         Ready,
    56         /** Threads are in this state before they are first readied. */
    57         Entering,
    58         /** After a thread calls thread_exit(), it is put into Exiting state. */
    59         Exiting,
    60         /** Threads that were not detached but exited are Lingering. */
    61         Lingering
    62 } state_t;
     53        SYSINFO_VAL_UNDEFINED = 0,     /**< Undefined value */
     54        SYSINFO_VAL_VAL = 1,           /**< Constant numeric value */
     55        SYSINFO_VAL_DATA = 2,          /**< Constant binary data */
     56        SYSINFO_VAL_FUNCTION_VAL = 3,  /**< Generated numeric value */
     57        SYSINFO_VAL_FUNCTION_DATA = 4  /**< Generated binary data */
     58} sysinfo_item_val_type_t;
    6359
    6460/** Statistics about a single CPU
Note: See TracChangeset for help on using the changeset viewer.