Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/mm/as.h

    rfc47885 rc15b374  
    115115       
    116116        /**
    117          * Number of processors on which this
    118          * address space is active. Protected by
    119          * asidlock.
     117         * Number of processors on wich is this address space active.
     118         * Protected by asidlock.
    120119         */
    121120        size_t cpu_refcount;
    122121       
    123         /** Address space identifier.
    124          *
    125          * Constant on architectures that do not
    126          * support ASIDs. Protected by asidlock.
    127          *
     122        /**
     123         * Address space identifier.
     124         * Constant on architectures that do not support ASIDs.
     125         * Protected by asidlock.
    128126         */
    129127        asid_t asid;
    130128       
    131         /** Number of references (i.e. tasks that reference this as). */
     129        /** Number of references (i.e tasks that reference this as). */
    132130        atomic_t refcount;
    133131       
     
    201199typedef struct {
    202200        mutex_t lock;
    203        
    204201        /** Containing address space. */
    205202        as_t *as;
    206203       
    207         /** Memory flags. */
     204        /**
     205         * Flags related to the memory represented by the address space area.
     206         */
    208207        unsigned int flags;
    209208       
    210         /** Address space area attributes. */
     209        /** Attributes related to the address space area itself. */
    211210        unsigned int attributes;
    212        
    213         /** Number of pages in the area. */
     211        /** Size of this area in multiples of PAGE_SIZE. */
    214212        size_t pages;
    215        
    216         /** Number of resident pages in the area. */
    217         size_t resident;
    218        
    219213        /** Base address of this area. */
    220214        uintptr_t base;
    221        
    222215        /** Map of used space. */
    223216        btree_t used_space;
    224217       
    225218        /**
    226          * If the address space area is shared. this is
    227          * a reference to the share info structure.
     219         * If the address space area has been shared, this pointer will
     220         * reference the share info structure.
    228221         */
    229222        share_info_t *sh_info;
     
    268261extern bool as_area_check_access(as_area_t *, pf_access_t);
    269262extern size_t as_area_get_size(uintptr_t);
    270 extern bool used_space_insert(as_area_t *, uintptr_t, size_t);
    271 extern bool used_space_remove(as_area_t *, uintptr_t, size_t);
     263extern int used_space_insert(as_area_t *, uintptr_t, size_t);
     264extern int used_space_remove(as_area_t *, uintptr_t, size_t);
     265
    272266
    273267/* Interface to be implemented by architectures. */
     
    309303
    310304/* Address space area related syscalls. */
    311 extern sysarg_t sys_as_area_create(uintptr_t, size_t, unsigned int);
    312 extern sysarg_t sys_as_area_resize(uintptr_t, size_t, unsigned int);
    313 extern sysarg_t sys_as_area_change_flags(uintptr_t, unsigned int);
    314 extern sysarg_t sys_as_area_destroy(uintptr_t);
     305extern unative_t sys_as_area_create(uintptr_t, size_t, unsigned int);
     306extern unative_t sys_as_area_resize(uintptr_t, size_t, unsigned int);
     307extern unative_t sys_as_area_change_flags(uintptr_t, unsigned int);
     308extern unative_t sys_as_area_destroy(uintptr_t);
    315309
    316310/* Introspection functions. */
Note: See TracChangeset for help on using the changeset viewer.