If the meaning of yoga is understood as the practice of nirodha (mental control), then its goal is "the unqualified state of niruddha (the perfection of that process)", according to Baba Hari Dass. In that context, "yoga (union) implies duality (as in joining of two things or principles); the result of yoga is the nondual state", and "as the union of the lower self and higher Self. The nondual state is characterized by the absence of individuality; it can be described as eternal peace, pure love, Self-realization, or liberation."
The early Buddhist texts describe yogic and meditative practices, some of which the Buddha borrowed from the śramaṇa tradition. The Pali canon contains three passages in which the Buddha describes pressing the tongue against the palate for the purposes of controlling hunger or the mind, depending on the passage. However, there is no mention of the tongue being inserted into the nasopharynx as in true khecarī mudrā. The Buddha used a posture where pressure is put on the perineum with the heel, similar to even modern postures used to stimulate Kundalini. Some of the major suttas that discuss yogic practice include the Satipatthana sutta (Four foundations of mindfulness sutta) and the Anapanasati sutta (Mindfulness of breathing sutta).