FreeBSD Bugzilla – Attachment 119371 Details for
Bug 161887
[vm] [panic] panic at vm_page_wire with FreeBSD 9.0 Beta 3 [regression]
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
file.txt
file.txt (text/plain), 1.03 KB, created by
Penta Upa
on 2011-10-21 19:10:10 UTC
(
hide
)
Description:
file.txt
Filename:
MIME Type:
Creator:
Penta Upa
Created:
2011-10-21 19:10:10 UTC
Size:
1.03 KB
patch
obsolete
>#include <sys/param.h> >#include <sys/module.h> >#include <sys/kernel.h> >#include <sys/systm.h> >#include <sys/types.h> >#include <sys/param.h> >#include <sys/time.h> >#include <sys/systm.h> >#include <sys/lock.h> >#include <sys/mutex.h> > > >#include <vm/vm.h> >#include <vm/vm_extern.h> >#include <vm/vm_param.h> >#include <vm/pmap.h> >#include <vm/vm_map.h> >#include <vm/vm_page.h> >#include <vm/vm_object.h> > >static void >vmtest(void) { > vm_page_t pp; > > pp = vm_page_alloc(NULL, 0, VM_ALLOC_NOOBJ | VM_ALLOC_NORMAL); > if (!pp) { > printf("Page allocation failure\n"); > return; > } > vm_page_lock(pp); > vm_page_lock_assert(pp, MA_OWNED); > vm_page_wire(pp); > vm_page_unlock(pp); >} > >/* The function called at load/unload. */ >static int event_handler(struct module *module, int event, void *arg) { > switch (event) { > case MOD_LOAD: > vmtest(); > break; > case MOD_UNLOAD: > break; > default: > break; > } > return 0; >} > >static moduledata_t vmtest_conf = { > "vmtest", > event_handler, > NULL >}; > >DECLARE_MODULE(vmtest, vmtest_conf, SI_SUB_DRIVERS, SI_ORDER_MIDDLE);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 161887
: 119371