The Kervaire invariant of framed manifolds and its generalization