Changeset 1433ecda in mainline for kernel/generic/include


Ignore:
Timestamp:
2018-04-04T15:42:37Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2c4e1cc
Parents:
47b2d7e3
Message:

Fix cstyle: make ccheck-fix and commit only files where all the changes are good.

Location:
kernel/generic/include
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/adt/avl.h

    r47b2d7e3 r1433ecda  
    5757typedef uint64_t avltree_key_t;
    5858
    59 typedef bool (* avltree_walker_t)(avltree_node_t *, void *);
     59typedef bool (*avltree_walker_t)(avltree_node_t *, void *);
    6060
    6161/** AVL tree node structure. */
    62 struct avltree_node
    63 {
     62struct avltree_node {
    6463        /**
    6564         * Pointer to the left descendant of this node.
     
    9291
    9392/** AVL tree structure. */
    94 struct avltree
    95 {
     93struct avltree {
    9694        /** AVL root node pointer */
    9795        struct avltree_node *root;
  • kernel/generic/include/adt/cht.h

    r47b2d7e3 r1433ecda  
    134134extern bool cht_create_simple(cht_t *h, cht_ops_t *op);
    135135extern bool cht_create(cht_t *h, size_t init_size, size_t min_size,
    136         size_t max_load, bool can_block, cht_ops_t *op);
     136    size_t max_load, bool can_block, cht_ops_t *op);
    137137extern void cht_destroy(cht_t *h);
    138138extern void cht_destroy_unsafe(cht_t *h);
  • kernel/generic/include/bitops.h

    r47b2d7e3 r1433ecda  
    3939
    4040#ifdef __32_BITS__
    41         #define fnzb(arg)  fnzb32(arg)
     41#define fnzb(arg)  fnzb32(arg)
    4242#endif
    4343
    4444#ifdef __64_BITS__
    45         #define fnzb(arg)  fnzb64(arg)
     45#define fnzb(arg)  fnzb64(arg)
    4646#endif
    4747
  • kernel/generic/include/byteorder.h

    r47b2d7e3 r1433ecda  
    3939
    4040#if !(defined(__BE__) ^ defined(__LE__))
    41         #error The architecture must be either big-endian or little-endian.
     41#error The architecture must be either big-endian or little-endian.
    4242#endif
    4343
  • kernel/generic/include/console/chardev.h

    r47b2d7e3 r1433ecda  
    5555typedef struct {
    5656        /** Read character directly from device, assume interrupts disabled. */
    57         wchar_t (* poll)(struct indev *);
     57        wchar_t (*poll)(struct indev *);
    5858
    5959        /** Signal out-of-band condition. */
    60         void (* signal)(struct indev *, indev_signal_t);
     60        void (*signal)(struct indev *, indev_signal_t);
    6161} indev_operations_t;
    6262
     
    8282typedef struct {
    8383        /** Write character to output. */
    84         void (* write)(struct outdev *, wchar_t);
     84        void (*write)(struct outdev *, wchar_t);
    8585
    8686        /** Redraw any previously cached characters. */
    87         void (* redraw)(struct outdev *);
     87        void (*redraw)(struct outdev *);
    8888
    8989        /** Scroll up in the device cache. */
    90         void (* scroll_up)(struct outdev *);
     90        void (*scroll_up)(struct outdev *);
    9191
    9292        /** Scroll down in the device cache. */
    93         void (* scroll_down)(struct outdev *);
     93        void (*scroll_down)(struct outdev *);
    9494} outdev_operations_t;
    9595
  • kernel/generic/include/console/kconsole.h

    r47b2d7e3 r1433ecda  
    8181        const char *description;
    8282        /** Function implementing the command. */
    83         int (* func)(cmd_arg_t *);
     83        int (*func)(cmd_arg_t *);
    8484        /** Number of arguments. */
    8585        size_t argc;
     
    8787        cmd_arg_t *argv;
    8888        /** Function for printing detailed help. */
    89         void (* help)(void);
     89        void (*help)(void);
    9090        /** Function for enumerating hints for arguments. */
    9191        hints_enum_func_t hints_enum;
  • kernel/generic/include/ddi/irq.h

    r47b2d7e3 r1433ecda  
    5757struct irq;
    5858
    59 typedef void (* irq_handler_t)(struct irq *);
     59typedef void (*irq_handler_t)(struct irq *);
    6060
    6161/** Type for function used to clear the interrupt. */
    62 typedef void (* cir_t)(void *, inr_t);
     62typedef void (*cir_t)(void *, inr_t);
    6363
    6464/** IPC notification config structure.
     
    114114        irq_trigger_t trigger;
    115115        /** Claim ownership of the IRQ. */
    116         irq_ownership_t (* claim)(struct irq *);
     116        irq_ownership_t (*claim)(struct irq *);
    117117        /** Handler for this IRQ and device. */
    118118        irq_handler_t handler;
  • kernel/generic/include/interrupt.h

    r47b2d7e3 r1433ecda  
    4747#include <arch/istate.h>
    4848
    49 typedef void (* iroutine_t)(unsigned int, istate_t *);
     49typedef void (*iroutine_t)(unsigned int, istate_t *);
    5050
    5151typedef struct {
  • kernel/generic/include/mm/as.h

    r47b2d7e3 r1433ecda  
    126126
    127127typedef struct {
    128         pte_t *(* page_table_create)(unsigned int);
    129         void (* page_table_destroy)(pte_t *);
    130         void (* page_table_lock)(as_t *, bool);
    131         void (* page_table_unlock)(as_t *, bool);
    132         bool (* page_table_locked)(as_t *);
     128        pte_t *(*page_table_create)(unsigned int);
     129        void (*page_table_destroy)(pte_t *);
     130        void (*page_table_lock)(as_t *, bool);
     131        void (*page_table_unlock)(as_t *, bool);
     132        bool (*page_table_locked)(as_t *);
    133133} as_operations_t;
    134134
     
    237237/** Address space area backend structure. */
    238238typedef struct mem_backend {
    239         bool (* create)(as_area_t *);
    240         bool (* resize)(as_area_t *, size_t);
    241         void (* share)(as_area_t *);
    242         void (* destroy)(as_area_t *);
    243 
    244         bool (* is_resizable)(as_area_t *);
    245         bool (* is_shareable)(as_area_t *);
    246 
    247         int (* page_fault)(as_area_t *, uintptr_t, pf_access_t);
    248         void (* frame_free)(as_area_t *, uintptr_t, uintptr_t);
    249 
    250         bool (* create_shared_data)(as_area_t *);
    251         void (* destroy_shared_data)(void *);
     239        bool (*create)(as_area_t *);
     240        bool (*resize)(as_area_t *, size_t);
     241        void (*share)(as_area_t *);
     242        void (*destroy)(as_area_t *);
     243
     244        bool (*is_resizable)(as_area_t *);
     245        bool (*is_shareable)(as_area_t *);
     246
     247        int (*page_fault)(as_area_t *, uintptr_t, pf_access_t);
     248        void (*frame_free)(as_area_t *, uintptr_t, uintptr_t);
     249
     250        bool (*create_shared_data)(as_area_t *);
     251        void (*destroy_shared_data)(void *);
    252252} mem_backend_t;
    253253
  • kernel/generic/include/panic.h

    r47b2d7e3 r1433ecda  
    6565
    6666extern void panic_common(panic_category_t, struct istate *, int,
    67     uintptr_t, const char *, ...) __attribute__ ((noreturn))
     67    uintptr_t, const char *, ...) __attribute__((noreturn))
    6868    _HELENOS_PRINTF_ATTRIBUTE(5, 6);
    6969
  • kernel/generic/include/synch/rcu.h

    r47b2d7e3 r1433ecda  
    113113extern void rcu_cpu_init(void);
    114114extern void rcu_kinit_init(void);
    115 extern void rcu_thread_init(struct thread*);
     115extern void rcu_thread_init(struct thread *);
    116116extern void rcu_thread_exiting(void);
    117117extern void rcu_after_thread_ran(void);
  • kernel/generic/include/time/timeout.h

    r47b2d7e3 r1433ecda  
    4040#include <stdint.h>
    4141
    42 typedef void (* timeout_handler_t)(void *arg);
     42typedef void (*timeout_handler_t)(void *arg);
    4343
    4444typedef struct {
  • kernel/generic/include/userspace.h

    r47b2d7e3 r1433ecda  
    4040
    4141/** Switch to user-space (CPU user priviledge level) */
    42 extern void userspace(uspace_arg_t *uarg) __attribute__ ((noreturn));
     42extern void userspace(uspace_arg_t *uarg) __attribute__((noreturn));
    4343
    4444#endif
Note: See TracChangeset for help on using the changeset viewer.