FreeBSD/sbin/hastd/activemap.c
/*
 * Function returns pointer to internal bitmap that should be written to disk.
 */
Function returns pointer to internal bitmap that should be written to disk.
Function returns pointer to internal bitmap that should be written to disk .
const unsigned char *
activemap_bitmap(struct activemap *amp, size_t *sizep)
{
	PJDLOG_ASSERT(amp->am_magic == ACTIVEMAP_MAGIC);
	if (sizep != NULL)
		*sizep = amp->am_diskmapsize;
	memcpy(amp->am_diskmap, amp->am_memmap, amp->am_mapsize);
	keepdirty_fill(amp);
	return ((const unsigned char *)amp->am_diskmap);
}
const unsigned char * activemap_bitmap ( struct activemap * amp , size_t * sizep ) { PJDLOG_ASSERT ( amp -> am_magic == ACTIVEMAP_MAGIC ) ; if ( sizep != NULL ) * sizep = amp -> am_diskmapsize ; memcpy ( amp -> am_diskmap , amp -> am_memmap , amp -> am_mapsize ) ; keepdirty_fill ( amp ) ; return ( ( const unsigned char * ) amp -> am_diskmap ) ; }
Function returns pointer to internal bitmap that should be written to disk.
Function returns pointer to internal bitmap that should be written to disk .