Date: Mon, 22 Nov 2010 22:10:46 +0300 From: Dmitry Krivenok <krivenok.dmitry@gmail.com> To: Garrett Cooper <gcooper@freebsd.org> Cc: freebsd-hackers@freebsd.org Subject: Re: printf doesn't work from kernel modules Message-ID: <AANLkTik4AkeVDzeFqGQRyE5OVhEPsKviv5d2GRP2oScf@mail.gmail.com> In-Reply-To: <AANLkTimQ323D_YAN1Z-1uKYWLCkFqyfRvvUp6rb0K_F4@mail.gmail.com> References: <AANLkTinbx0NpZfJoyv4vp3HMFcFUg9Uv9Ru_YdikW6Uv@mail.gmail.com> <AANLkTimQ323D_YAN1Z-1uKYWLCkFqyfRvvUp6rb0K_F4@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Just tried dys_sysctl. It doesn't work as well. Below are the results I got: root@olimpico-freebsd 22:04:17 /usr/share/examples/kld/dyn_sysctl # [0] uname -a FreeBSD olimpico-freebsd 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Nov 22 21:35:15 MSK 2010 root@olimpico-freebsd:/usr/obj/usr/src/sys/GENERIC i386 root@olimpico-freebsd 22:04:20 /usr/share/examples/kld/dyn_sysctl # [0] kldstat Id Refs Address Size Name 1 1 0xc0400000 bb5504 kernel root@olimpico-freebsd 22:04:24 /usr/share/examples/kld/dyn_sysctl # [0] dmesg | tail -n 3 ums0: 3 buttons and [XYZ] coordinates ID=0 ugen2.2: <Broadcom Corp> at usbus2 em0: link state changed to UP root@olimpico-freebsd 22:04:39 /usr/share/examples/kld/dyn_sysctl # [0 0] make load /sbin/kldload -v /usr/share/examples/kld/dyn_sysctl/dyn_sysctl.ko Loaded /usr/share/examples/kld/dyn_sysctl/dyn_sysctl.ko, id=2 root@olimpico-freebsd 22:04:49 /usr/share/examples/kld/dyn_sysctl # [0] kldstat Id Refs Address Size Name 1 2 0xc0400000 bb5504 kernel 2 1 0xc855d000 3000 dyn_sysctl.ko root@olimpico-freebsd 22:04:53 /usr/share/examples/kld/dyn_sysctl # [0] dmesg | tail -n 3 ums0: 3 buttons and [XYZ] coordinates ID=0 ugen2.2: <Broadcom Corp> at usbus2 em0: link state changed to UP root@olimpico-freebsd 22:04:57 /usr/share/examples/kld/dyn_sysctl # [0 0] make unload /sbin/kldunload -v dyn_sysctl.ko Unloading dyn_sysctl.ko, id=2 root@olimpico-freebsd 22:05:04 /usr/share/examples/kld/dyn_sysctl # [0] kldstat Id Refs Address Size Name 1 1 0xc0400000 bb5504 kernel root@olimpico-freebsd 22:05:07 /usr/share/examples/kld/dyn_sysctl # [0] dmesg | tail -n 3 ums0: 3 buttons and [XYZ] coordinates ID=0 ugen2.2: <Broadcom Corp> at usbus2 em0: link state changed to UP root@olimpico-freebsd 22:05:09 /usr/share/examples/kld/dyn_sysctl # [0 0] Please note that I run standard example on default 8.1 kernel (GENERIC). Dmitry > > Which example did you try and run (it looks like the dyn_sysctl test > would be a good one to try)? > -Garrett
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTik4AkeVDzeFqGQRyE5OVhEPsKviv5d2GRP2oScf>