Changeset 9150781 in mainline for kernel/generic/include/mm/as.h


Ignore:
Timestamp:
2010-05-02T10:54:57Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0321109
Parents:
7ed8530
Message:

Remove names of formal parameters from as.h

File:
1 edited

Legend:

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

    r7ed8530 r9150781  
    11/*
    2  * Copyright (c) 2001-2004 Jakub Jermar
     2 * Copyright (c) 2010 Jakub Jermar
    33 * All rights reserved.
    44 *
     
    227227extern void as_init(void);
    228228
    229 extern as_t *as_create(int flags);
    230 extern void as_destroy(as_t *as);
    231 extern void as_switch(as_t *old_as, as_t *new_as);
    232 extern int as_page_fault(uintptr_t page, pf_access_t access, istate_t *istate);
    233 
    234 extern as_area_t *as_area_create(as_t *as, int flags, size_t size,
    235     uintptr_t base, int attrs, mem_backend_t *backend,
    236     mem_backend_data_t *backend_data);
    237 extern int as_area_destroy(as_t *as, uintptr_t address);       
    238 extern int as_area_resize(as_t *as, uintptr_t address, size_t size, int flags);
    239 int as_area_share(as_t *src_as, uintptr_t src_base, size_t acc_size,
    240     as_t *dst_as, uintptr_t dst_base, int dst_flags_mask);
    241 extern int as_area_change_flags(as_t *as, int flags, uintptr_t address);
    242 
    243 extern int as_area_get_flags(as_area_t *area);
    244 extern bool as_area_check_access(as_area_t *area, pf_access_t access);
    245 extern size_t as_area_get_size(uintptr_t base);
    246 extern int used_space_insert(as_area_t *a, uintptr_t page, size_t count);
    247 extern int used_space_remove(as_area_t *a, uintptr_t page, size_t count);
     229extern as_t *as_create(int);
     230extern void as_destroy(as_t *);
     231extern void as_switch(as_t *, as_t *);
     232extern int as_page_fault(uintptr_t, pf_access_t, istate_t *);
     233
     234extern as_area_t *as_area_create(as_t *, int, size_t, uintptr_t, int,
     235    mem_backend_t *, mem_backend_data_t *);
     236extern int as_area_destroy(as_t *, uintptr_t);
     237extern int as_area_resize(as_t *, uintptr_t, size_t, int);
     238extern int as_area_share(as_t *, uintptr_t, size_t, as_t *, uintptr_t, int);
     239extern int as_area_change_flags(as_t *, int, uintptr_t);
     240
     241extern int as_area_get_flags(as_area_t *);
     242extern bool as_area_check_access(as_area_t *, pf_access_t);
     243extern size_t as_area_get_size(uintptr_t);
     244extern int used_space_insert(as_area_t *, uintptr_t, size_t);
     245extern int used_space_remove(as_area_t *, uintptr_t, size_t);
    248246
    249247
    250248/* Interface to be implemented by architectures. */
    251249#ifndef as_constructor_arch
    252 extern int as_constructor_arch(as_t *as, int flags);
     250extern int as_constructor_arch(as_t *, int);
    253251#endif /* !def as_constructor_arch */
    254252#ifndef as_destructor_arch
    255 extern int as_destructor_arch(as_t *as);
     253extern int as_destructor_arch(as_t *);
    256254#endif /* !def as_destructor_arch */
    257255#ifndef as_create_arch
    258 extern int as_create_arch(as_t *as, int flags);
     256extern int as_create_arch(as_t *, int);
    259257#endif /* !def as_create_arch */
    260258#ifndef as_install_arch
    261 extern void as_install_arch(as_t *as);
     259extern void as_install_arch(as_t *);
    262260#endif /* !def as_install_arch */
    263261#ifndef as_deinstall_arch
    264 extern void as_deinstall_arch(as_t *as);
     262extern void as_deinstall_arch(as_t *);
    265263#endif /* !def as_deinstall_arch */
    266264
     
    277275#define ELD_F_LOADER    1
    278276
    279 extern unsigned int elf_load(elf_header_t *header, as_t *as, int flags);
     277extern unsigned int elf_load(elf_header_t *, as_t *, int);
    280278
    281279/* Address space area related syscalls. */
    282 extern unative_t sys_as_area_create(uintptr_t address, size_t size, int flags);
    283 extern unative_t sys_as_area_resize(uintptr_t address, size_t size, int flags);
    284 extern unative_t sys_as_area_change_flags(uintptr_t address, int flags);
    285 extern unative_t sys_as_area_destroy(uintptr_t address);
     280extern unative_t sys_as_area_create(uintptr_t, size_t, int);
     281extern unative_t sys_as_area_resize(uintptr_t, size_t, int);
     282extern unative_t sys_as_area_change_flags(uintptr_t, int);
     283extern unative_t sys_as_area_destroy(uintptr_t);
    286284
    287285/* Introspection functions. */
    288 extern void as_get_area_info(as_t *as, as_area_info_t **obuf, size_t *osize);
    289 extern void as_print(as_t *as);
     286extern void as_get_area_info(as_t *, as_area_info_t **, size_t *);
     287extern void as_print(as_t *);
    290288
    291289#endif /* KERNEL */
Note: See TracChangeset for help on using the changeset viewer.