Interface I2C sensors with TX2 development kit

Hi, I am looking for a way to interface general I2C sensors (not specific sensors) with the TX2 development board.

Here is the resource that I found from the Jetson Hacks:
https://www.jetsonhacks.com/2018/07/25/i2c-nvidia-jetson-tx2-development-kit/

However, the software introduced in the above tutorial is specifically for Adafruit LED Backpack. Is there an official library to deal with I2C sensors in general? If not, please instruct me on how to develop such a library by scratch (what kinds of sublibrary to use, how to define the class)?

Or, is it recommended developing a library for a specific sensor, not in general?

Thank you.

Have a check the l4t document.

https://docs.nvidia.com/jetson/l4t/index.html#page/Tegra%2520Linux%2520Driver%2520Package%2520Development%2520Guide%2Fcamera_dev.html%23