The ulnar nerve is a nerve which runs near the ulna bone.
The ulnar collateral ligament of elbow joint is in relation with the ulnar nerve.
The nerve is the largest unprotected nerve in the human body (meaning unprotected by muscle or bone), so injury is common. This nerve is directly connected to the little finger, and the adjacent half of the ring finger, supplying the palmar side of these fingers, including both front and back of the tips, perhaps as far back as the fingernail beds.
This nerve can cause an electric shock-like sensation by striking the medial epicondyle of the humerus from posteriorly, or inferiorly with the elbow flexed. The ulnar nerve is trapped between the bone and the overlying skin at this point. This is commonly referred to as bumping one's “funny bone”. This name is thought to be a pun, based on the sound resemblance between the name of the bone of the upper arm, the “humerus” and the word “humorous”.
Alternatively, according to the Oxford English Dictionary it may refer to “the peculiar sensation experienced when it is struck”.
see Ulnar nerve transfer.