Changeset 62c63fc in mainline


Ignore:
Timestamp:
2007-01-22T12:56:29Z (18 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e7b7be3f
Parents:
da1f9dc
Message:

another typedefs to anonymous structs

Location:
kernel/generic/include
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/arch.h

    rda1f9dc r62c63fc  
    6060 * the base address of the stack.
    6161 */
    62 struct the {
     62typedef struct {
    6363        count_t preemption_disabled;    /**< Preemption disabled counter. */
    6464        thread_t *thread;               /**< Current thread. */
     
    6666        cpu_t *cpu;                     /**< Executing cpu. */
    6767        as_t *as;                       /**< Current address space. */
    68 };
     68} the_t;
    6969
    7070#define THE             ((the_t *)(get_stack_base()))
  • kernel/generic/include/proc/scheduler.h

    rda1f9dc r62c63fc  
    4646
    4747/** Scheduler run queue structure. */
    48 struct runq {
     48typedef struct {
    4949        SPINLOCK_DECLARE(lock);
    5050        link_t rq_head;         /**< List of ready threads. */
    5151        count_t n;              /**< Number of threads in rq_ready. */
    52 };
     52} runq_t;
    5353
    5454extern atomic_t nrdy;
  • kernel/generic/include/time/timeout.h

    rda1f9dc r62c63fc  
    4545typedef void (* timeout_handler_t)(void *arg);
    4646
    47 struct timeout {
     47typedef struct {
    4848        SPINLOCK_DECLARE(lock);
    4949
     
    5656       
    5757        cpu_t *cpu;                     /**< On which processor is this timeout registered. */
    58 };
     58} timeout_t;
    5959
    6060extern void timeout_init(void);
  • kernel/generic/include/typedefs.h

    rda1f9dc r62c63fc  
    5353typedef struct fpu_context fpu_context_t;
    5454
    55 typedef struct timeout timeout_t;
    56 
    57 typedef struct runq runq_t;
    58 
    5955typedef struct spinlock spinlock_t;
    6056typedef struct mutex mutex_t;
     
    7369
    7470typedef struct link link_t;
    75 
    76 typedef struct the the_t;
    7771
    7872typedef struct chardev chardev_t;
Note: See TracChangeset for help on using the changeset viewer.