Ignore:
Timestamp:
Oct 4, 2018, 11:48:51 PM (3 years ago)
Author:
alain
Message:

Complete restructuration of kernel locks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/devices/dev_txt.h

    r539 r565  
    2828#include <hal_kernel_types.h>
    2929#include <xlist.h>
    30 #include <remote_spinlock.h>
     30#include <remote_busylock.h>
    3131
    3232/****  Forward declarations  ****/
     
    5757{
    5858    xptr_t            owner_xp;  /*! ext. pointer on current process owner (reference)   */
    59     xlist_entry_t     root;      /*! root of list of processes attached to   same TXT    */
    60     remote_spinlock_t lock;      /*! lock protecting this list                           */
     59    xlist_entry_t     root;      /*! root of list of processes attached to same TXT      */
     60    remote_busylock_t lock;      /*! lock protecting this list                           */
    6161}
    6262txt_extend_t;
     
    103103typedef struct txt_sync_args_s
    104104{
    105     xptr_t      dev_xp;    /*! extended pointer on the TXT0_TX device descriptor            */
    106     char      * buffer;    /*! local pointer on characters array                         */
    107     uint32_t    count;     /*! number of characters in buffer                            */
     105    xptr_t       dev_xp;    /*! extended pointer on the TXT0_TX device descriptor        */
     106    const char * buffer;    /*! local pointer on characters array                        */
     107    uint32_t     count;     /*! number of characters in buffer                           */
    108108    uint32_t    channel;   /*! channel, aka which tty to write to                        */
    109109}
     
    172172 * @ returns 0 if success / returns EINVAL if error.
    173173 ***************************************************************************************/
    174 error_t dev_txt_sync_write( char     * buffer,
    175                             uint32_t   count );
     174error_t dev_txt_sync_write( const char     * buffer,
     175                            uint32_t         count );
    176176
    177177#endif  /* _DEV_TXT_H_ */
Note: See TracChangeset for help on using the changeset viewer.