Changeset d5a89a3 in mainline for kernel/generic/include


Ignore:
Timestamp:
2019-02-11T22:31:04Z (6 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
aaf9789c
Parents:
e3272101 (diff), 4805495 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merging with upstream/master

Location:
kernel/generic/include
Files:
10 edited

Legend:

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

    re3272101 rd5a89a3  
    150150 *
    151151 */
    152 NO_TRACE static inline void link_initialize(link_t *link)
     152_NO_TRACE static inline void link_initialize(link_t *link)
    153153{
    154154        link->prev = NULL;
     
    163163 *
    164164 */
    165 NO_TRACE static inline void list_initialize(list_t *list)
     165_NO_TRACE static inline void list_initialize(list_t *list)
    166166{
    167167        list->head.prev = &list->head;
     
    199199 *
    200200 */
    201 NO_TRACE static inline void list_prepend(link_t *link, list_t *list)
     201_NO_TRACE static inline void list_prepend(link_t *link, list_t *list)
    202202{
    203203        list_insert_after(link, &list->head);
     
    212212 *
    213213 */
    214 NO_TRACE static inline void list_append(link_t *link, list_t *list)
     214_NO_TRACE static inline void list_append(link_t *link, list_t *list)
    215215{
    216216        list_insert_before(link, &list->head);
     
    225225 *
    226226 */
    227 NO_TRACE static inline void list_remove(link_t *link)
     227_NO_TRACE static inline void list_remove(link_t *link)
    228228{
    229229        if ((link->prev != NULL) && (link->next != NULL)) {
     
    242242 *
    243243 */
    244 NO_TRACE static inline bool list_empty(const list_t *list)
     244_NO_TRACE static inline bool list_empty(const list_t *list)
    245245{
    246246        return (list->head.next == &list->head);
     
    310310 *
    311311 */
    312 NO_TRACE static inline void headless_list_split_or_concat(link_t *part1, link_t *part2)
     312_NO_TRACE static inline void headless_list_split_or_concat(link_t *part1, link_t *part2)
    313313{
    314314        part1->prev->next = part2;
     
    331331 *
    332332 */
    333 NO_TRACE static inline void headless_list_split(link_t *part1, link_t *part2)
     333_NO_TRACE static inline void headless_list_split(link_t *part1, link_t *part2)
    334334{
    335335        headless_list_split_or_concat(part1, part2);
     
    346346 *
    347347 */
    348 NO_TRACE static inline void headless_list_concat(link_t *part1, link_t *part2)
     348_NO_TRACE static inline void headless_list_concat(link_t *part1, link_t *part2)
    349349{
    350350        headless_list_split_or_concat(part1, part2);
     
    361361 *
    362362 */
    363 NO_TRACE static inline void list_concat(list_t *list1, list_t *list2)
     363_NO_TRACE static inline void list_concat(list_t *list1, list_t *list2)
    364364{
    365365        list_splice(list2, list1->head.prev);
  • kernel/generic/include/adt/odict.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_ODICT_H_
    36 #define LIBC_ODICT_H_
     35#ifndef _LIBC_ODICT_H_
     36#define _LIBC_ODICT_H_
    3737
    3838#include <errno.h>
  • kernel/generic/include/bitops.h

    re3272101 rd5a89a3  
    5252 *
    5353 */
    54 NO_TRACE static inline uint8_t fnzb32(uint32_t arg)
     54_NO_TRACE static inline uint8_t fnzb32(uint32_t arg)
    5555{
    5656        uint8_t n = 0;
     
    8787 *
    8888 */
    89 NO_TRACE static inline uint8_t fnzb64(uint64_t arg)
     89_NO_TRACE static inline uint8_t fnzb64(uint64_t arg)
    9090{
    9191        uint8_t n = 0;
  • kernel/generic/include/context.h

    re3272101 rd5a89a3  
    9191 *
    9292 */
    93 NO_TRACE static inline void context_restore(context_t *ctx)
     93_NO_TRACE static inline void context_restore(context_t *ctx)
    9494{
    9595        context_restore_arch(ctx);
  • kernel/generic/include/lib/refcount.h

    re3272101 rd5a89a3  
    3737 */
    3838
    39 #ifndef LIBC_REFCOUNT_H_
    40 #define LIBC_REFCOUNT_H_
     39#ifndef _LIBC_REFCOUNT_H_
     40#define _LIBC_REFCOUNT_H_
    4141
    4242#include <assert.h>
  • kernel/generic/include/macros.h

    re3272101 rd5a89a3  
    4949 *
    5050 */
    51 NO_TRACE static inline int overlaps(uint64_t s1, uint64_t sz1, uint64_t s2,
     51_NO_TRACE static inline int overlaps(uint64_t s1, uint64_t sz1, uint64_t s2,
    5252    uint64_t sz2)
    5353{
     
    7878 *
    7979 */
    80 NO_TRACE static inline int iswithin(uint64_t s1, uint64_t sz1, uint64_t s2,
     80_NO_TRACE static inline int iswithin(uint64_t s1, uint64_t sz1, uint64_t s2,
    8181    uint64_t sz2)
    8282{
  • kernel/generic/include/str.h

    re3272101 rd5a89a3  
    11/*
    22 * Copyright (c) 2001-2004 Jakub Jermar
     3 * Copyright (c) 2005 Martin Decky
     4 * Copyright (c) 2011 Oleg Romanenko
    35 * All rights reserved.
    46 *
     
    3638#define KERN_STR_H_
    3739
     40#include <errno.h>
    3841#include <stdbool.h>
    3942#include <stddef.h>
    4043#include <stdint.h>
    41 #include <errno.h>
    4244
    43 /**< Common Unicode characters */
     45/* Common Unicode characters */
    4446#define U_SPECIAL      '?'
    4547
     
    6163#define U_CURSOR       0x2588
    6264
    63 /**< No size limit constant */
     65/** No size limit constant */
    6466#define STR_NO_LIMIT  ((size_t) -1)
    6567
    66 /**< Maximum size of a string containing cnt characters */
    67 #define STR_BOUNDS(cnt)  ((cnt) << 2)
     68/** Maximum size of a string containing @c length characters */
     69#define STR_BOUNDS(length)  ((length) << 2)
    6870
    6971extern wchar_t str_decode(const char *str, size_t *offset, size_t sz);
     
    9294extern void wstr_to_str(char *dest, size_t size, const wchar_t *src);
    9395
    94 extern char *str_dup(const char *src);
    95 extern char *str_ndup(const char *src, size_t n);
    96 
    9796extern char *str_chr(const char *str, wchar_t ch);
    9897
     
    10099extern bool wstr_remove(wchar_t *str, size_t pos);
    101100
    102 extern errno_t str_uint64_t(const char *, char **, unsigned int, bool, uint64_t *);
     101extern char *str_dup(const char *src);
     102extern char *str_ndup(const char *src, size_t n);
     103
     104extern errno_t str_uint64_t(const char *, char **, unsigned int, bool,
     105    uint64_t *);
    103106
    104107extern void order_suffix(const uint64_t, uint64_t *, char *);
  • kernel/generic/include/synch/spinlock.h

    re3272101 rd5a89a3  
    103103 * @param lock  Pointer to spinlock_t structure.
    104104 */
    105 NO_TRACE static inline void spinlock_lock(spinlock_t *lock)
     105_NO_TRACE static inline void spinlock_lock(spinlock_t *lock)
    106106{
    107107        preemption_disable();
     
    115115 * @param lock  Pointer to spinlock_t structure.
    116116 */
    117 NO_TRACE static inline void spinlock_unlock(spinlock_t *lock)
     117_NO_TRACE static inline void spinlock_unlock(spinlock_t *lock)
    118118{
    119119        atomic_flag_clear_explicit(&lock->flag, memory_order_release);
  • kernel/generic/include/trace.h

    re3272101 rd5a89a3  
    3636#define KERN_TRACE_H_
    3737
    38 #define NO_TRACE  __attribute__((no_instrument_function))
     38#define _NO_TRACE  __attribute__((no_instrument_function))
    3939
    4040#endif
  • kernel/generic/include/types/adt/odict.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_TYPES_ODICT_H_
    36 #define LIBC_TYPES_ODICT_H_
     35#ifndef _LIBC_TYPES_ODICT_H_
     36#define _LIBC_TYPES_ODICT_H_
    3737
    3838#include <adt/list.h>
Note: See TracChangeset for help on using the changeset viewer.