/* insn_init() - initialize struct insn @insn: &struct insn to be initialized @kaddr: address (in kernel memory) of instruction (or copy thereof) @x86_64: !0 for 64-bit kernel or 64-bit app  */
void insn_init(struct insn *insn, const void *kaddr, int x86_64)
/* insn_init() - initialize struct insn @insn: &struct insn to be initialized @kaddr: address (in kernel memory) of instruction (or copy thereof) @x86_64: !0 for 64-bit kernel or 64-bit app  */
void insn_init(struct insn *insn, const void *kaddr, int x86_64)
{
	memset(insn, 0, sizeof(*insn));
	insn->kaddr = kaddr;
	insn->next_byte = kaddr;
	insn->x86_64 = x86_64 ? 1 : 0;
	insn->opnd_bytes = 4;
	if (x86_64)
		insn->addr_bytes = 8;
	else
		insn->addr_bytes = 4;
}