Question: what is the photosynthesis of function?
Answer: It's not oxygen production. The primary function of photosynthesis is to convert solar energy into chemical energy and then store that chemical energy for future use. For the most part, the planet's living systems are powered by this process.