[PATCHv2 0/2] Document hooks