How surface passivation works?
Surface passivation creates different chemistry on the surface than the chemistry of the bulk solid. Imagine bulk Si with a clean surface (presumably in a vacuum and freshly made). It can be thought of as having "dangling bonds", though this is not necessarily the best way to think about it. Think more generally that the structure on the surface is different to the bulk structure. There may be different elements present and the bonds may be "satisfied". Or they may be strained compared to the bulk material.

Expose the Si to, for example, O2 and the surface layer (your dangling bonds, if you like) will react to give some SiO2 just on the top layer. This new layer may be much less reactive than bulk silicon in normal air, hence can be said to passivate the surface.

If the chemical and physical properties of the new layer are right, the layer will protect the bulk from further reaction: this is the definition of passivation. A similar situation occurs naturally for aluminium, for example, where the Al2O3 layer that forms is both strong and relatively impermeable to air preventing further reaction (aluminium with the layer removed will react so rapidly with oxygen it gets warm and disintegrates). Iron, on the other hand, forms rust which doesn't protect the surface as it is flaky and weaker than the bulk metal. To passivate iron you need to add other elements which encourage the formation of stronger passivating layers (this is how many steels are made not to rust).

Chemical manipulation of the surface can create specific types of passivation that serve a particular purpose rather than relying on the natural reactions of air and the surface. This is common in the semiconductor industry and can also be used to generate the coloured layers on aluminium and titanium products where the goal is aesthetic as much as protective.