LinuxKPI: Add want_init_on_free to linux/mm.h
authorVladimir Kondratyev <wulf@FreeBSD.org>
Mon, 8 Apr 2024 06:47:43 +0000 (09:47 +0300)
committerVladimir Kondratyev <wulf@FreeBSD.org>
Mon, 8 Apr 2024 06:47:43 +0000 (09:47 +0300)
commit56041ee817fff844e5b2de7eedc447e388ab988e
tree872f567f1d5a8dcac3682ea039d7405be39dbb80
parentf7ea333e2b20b5850d5be4eee1d26873111f47ff
LinuxKPI: Add want_init_on_free to linux/mm.h

want_init_on_free returns if heap memory zeroing on free is enabled.
FreeBSD does not zeroes heap memory on free().

Sponsored by: Serenity Cyber Security
Reviewed by: emaste
MFC after: 1 week
sys/compat/linuxkpi/common/include/linux/mm.h