SOLVED Souce code for pinMode in Github

Does anybody knows how to search (Github) for source code for this API?
All I am getting is sample usage of pinMode and no source code reference.
What is the magic search word to use?
Thanks

In case you wonder why - I need to convert pin number to PIOx register bit position.

I like to have machine to do it.

Use the pinmapping : https://www.arduino.cc/en/Hacking/PinMapping168

Here is pinMode() : https://github.com/arduino/Arduino/blob/master/hardware/arduino/avr/cores/arduino/wiring_digital.c

Peter_n:
Use the pinmapping : https://www.arduino.cc/en/Hacking/PinMapping168

Here is pinMode() : https://github.com/arduino/Arduino/blob/master/hardware/arduino/avr/cores/arduino/wiring_digital.c

Thanks, but how did you know how to find it in source code ?
I need to look it up for ARM , so that is why am I asking how you did it.
I have not tried to search for it yest, just asking.

Found it under SAM, and for my next trick I need to find
g_APinDescription.

I vaguely knew that it was in wiring_digital.c. So I started at Arduino at Github, and followed the path until I got to that file.

Peter_n:
I vaguely knew that it was in wiring_digital.c. So I started at Arduino at Github, and followed the path until I got to that file.

I am disappointed, I though you were some kinda of a superman.
Many thanks for sharing your powers anyway.
Have great day.

ha ha ;D

Delta_G:
You can search the contents of the Arduino\hardware\arduino folder where you installed the IDE to find the line in the code. From there, if you want ot see it on github then just find the same file.

My " problem" I have several versions of Arduino IDE and the code in Github is most reliable anyway.
The "funny"part is on Github I always find the usage of the function I am looking for first and the actual definition is always last.