準仮想化 - PARAVIRT_PATCH()
概要
paravirt_patch_template構造体のメンバを示すindexを取得する
詳細
offsetof()でparavirt_patch_template構造体のメンバのoffset値を取得し、この値をvoidのサイズで割ることで指定したメンバのindexを得る
paravirt_patch_template構造体のメンバを示すindexを取得する
offsetof()でparavirt_patch_template構造体のメンバのoffset値を取得し、この値をvoidのサイズで割ることで指定したメンバのindexを得る