[BACK]Return to uvm_map.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / uvm

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/uvm/uvm_map.c between version 1.232.6.1 and 1.233

version 1.232.6.1, 2007/10/29 00:45:23 version 1.233, 2007/02/21 23:00:13
Line 418  _uvm_map_check(struct vm_map *map, const
Line 418  _uvm_map_check(struct vm_map *map, const
 int  int
 _uvm_map_sanity(struct vm_map *map)  _uvm_map_sanity(struct vm_map *map)
 {  {
         boolean_t first_free_found = FALSE;          bool first_free_found = FALSE;
         boolean_t hint_found = FALSE;          bool hint_found = FALSE;
         const struct vm_map_entry *e;          const struct vm_map_entry *e;
   
         e = &map->header;          e = &map->header;
Line 1421  done:
Line 1421  done:
  * => return value is true if address is in the returned entry   * => return value is true if address is in the returned entry
  */   */
   
 boolean_t  bool
 uvm_map_lookup_entry(struct vm_map *map, vaddr_t address,  uvm_map_lookup_entry(struct vm_map *map, vaddr_t address,
     struct vm_map_entry **entry /* OUT */)      struct vm_map_entry **entry /* OUT */)
 {  {
         struct vm_map_entry *cur;          struct vm_map_entry *cur;
         boolean_t use_tree = FALSE;          bool use_tree = FALSE;
         UVMHIST_FUNC("uvm_map_lookup_entry");          UVMHIST_FUNC("uvm_map_lookup_entry");
         UVMHIST_CALLED(maphist);          UVMHIST_CALLED(maphist);
   
Line 2797  uvm_map_setup_kernel(struct vm_map_kerne
Line 2797  uvm_map_setup_kernel(struct vm_map_kerne
   
 int  int
 uvm_map_protect(struct vm_map *map, vaddr_t start, vaddr_t end,  uvm_map_protect(struct vm_map *map, vaddr_t start, vaddr_t end,
     vm_prot_t new_prot, boolean_t set_max)      vm_prot_t new_prot, bool set_max)
 {  {
         struct vm_map_entry *current, *entry;          struct vm_map_entry *current, *entry;
         int error = 0;          int error = 0;
Line 3042  uvm_map_advice(struct vm_map *map, vaddr
Line 3042  uvm_map_advice(struct vm_map *map, vaddr
   
 int  int
 uvm_map_pageable(struct vm_map *map, vaddr_t start, vaddr_t end,  uvm_map_pageable(struct vm_map *map, vaddr_t start, vaddr_t end,
     boolean_t new_pageable, int lockflags)      bool new_pageable, int lockflags)
 {  {
         struct vm_map_entry *entry, *start_entry, *failed_entry;          struct vm_map_entry *entry, *start_entry, *failed_entry;
         int rv;          int rv;
Line 3690  uvm_map_clean(struct vm_map *map, vaddr_
Line 3690  uvm_map_clean(struct vm_map *map, vaddr_
  * => map must be read or write locked by caller.   * => map must be read or write locked by caller.
  */   */
   
 boolean_t  bool
 uvm_map_checkprot(struct vm_map *map, vaddr_t start, vaddr_t end,  uvm_map_checkprot(struct vm_map *map, vaddr_t start, vaddr_t end,
     vm_prot_t protection)      vm_prot_t protection)
 {  {
Line 4319  again:
Line 4319  again:
                 goto again;                  goto again;
         }          }
   
         error = uvm_map_prepare(map, 0, PAGE_SIZE, NULL, UVM_UNKNOWN_OFFSET,          error = uvm_map_prepare(map, 0, PAGE_SIZE, NULL, 0, 0, mapflags, &args);
             0, mapflags, &args);  
         if (error) {          if (error) {
                 uvm_pagefree(pg);                  uvm_pagefree(pg);
                 return NULL;                  return NULL;
Line 4529  uvm_mapent_trymerge(struct vm_map *map, 
Line 4528  uvm_mapent_trymerge(struct vm_map *map, 
         struct vm_map_entry *prev;          struct vm_map_entry *prev;
         vsize_t size;          vsize_t size;
         int merged = 0;          int merged = 0;
         boolean_t copying;          bool copying;
         int newetype;          int newetype;
   
         if (VM_MAP_USE_KMAPENT(map)) {          if (VM_MAP_USE_KMAPENT(map)) {
Line 4641  uvm_mapent_trymerge(struct vm_map *map, 
Line 4640  uvm_mapent_trymerge(struct vm_map *map, 
  */   */
   
 void  void
 uvm_map_printit(struct vm_map *map, boolean_t full,  uvm_map_printit(struct vm_map *map, bool full,
     void (*pr)(const char *, ...))      void (*pr)(const char *, ...))
 {  {
         struct vm_map_entry *entry;          struct vm_map_entry *entry;
Line 4677  uvm_map_printit(struct vm_map *map, bool
Line 4676  uvm_map_printit(struct vm_map *map, bool
  */   */
   
 void  void
 uvm_object_printit(struct uvm_object *uobj, boolean_t full,  uvm_object_printit(struct uvm_object *uobj, bool full,
     void (*pr)(const char *, ...))      void (*pr)(const char *, ...))
 {  {
         struct vm_page *pg;          struct vm_page *pg;
Line 4714  static const char page_flagbits[] = UVM_
Line 4713  static const char page_flagbits[] = UVM_
 static const char page_pqflagbits[] = UVM_PQFLAGBITS;  static const char page_pqflagbits[] = UVM_PQFLAGBITS;
   
 void  void
 uvm_page_printit(struct vm_page *pg, boolean_t full,  uvm_page_printit(struct vm_page *pg, bool full,
     void (*pr)(const char *, ...))      void (*pr)(const char *, ...))
 {  {
         struct vm_page *tpg;          struct vm_page *tpg;
Line 4928  vm_map_to_kernel(struct vm_map *map)
Line 4927  vm_map_to_kernel(struct vm_map *map)
         return (struct vm_map_kernel *)map;          return (struct vm_map_kernel *)map;
 }  }
   
 boolean_t  bool
 vm_map_starved_p(struct vm_map *map)  vm_map_starved_p(struct vm_map *map)
 {  {
   

Legend:
Removed from v.1.232.6.1  
changed lines
  Added in v.1.233

CVSweb <webmaster@jp.NetBSD.org>