Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Sep 2013 16:25:53 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Pawel Sulewski <p.sulewski@samsung.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: question
Message-ID:  <20130911162553.51478c63.freebsd@edvax.de>
In-Reply-To: <000301ceaec2$55848640$008d92c0$%sulewski@samsung.com>
References:  <000301ceaec2$55848640$008d92c0$%sulewski@samsung.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 11 Sep 2013 09:41:31 +0200, Pawel Sulewski wrote:
> How to recognize kernel panic and dump memory state onto USB device using C
> language?

The kernel has its own crash handling and will initiate the
writing of the proper image automatically. It will be stored
on the partition designated by the /etc/rc.conf setting
dumpdev="<device>", usually a swap partition, and at next
boot time that image will be written to a file in /var/crash,
if nothing else has been defined with dumpdir="<directory>"
(same file; see "man rc.conf" and /etc/defaults/rc.conf for
details). If you want to coredump to a USB device, you need
to configure this accordingly.

You can find more information about this topic in the following
manual pages: "man 2 sigaction", "man 8 crash", and "man 5 core".






-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130911162553.51478c63.freebsd>