Diesel Emissions Fluid is a solution that contains urea. It's for NOx reduction, and, therefore, acid rain reduction.
Since air is 80% nitrogen, and 20%oxygen, you can't keep nitrogen out of your combustion chamber. Since a Diesel runs with minimal fuel, and an excess of air, there will be a huge number of oxygen molecules in the combustion chamber with no hydrocarbons to react with. But, they will, at temps of 700*F or higher, react with nitrogen molecules.
This is how NOx emissions exist in the first place. Super-hot air causes the two components of air to react, even when you have no "fuel".
Urea-fogging into the exhaust stream reverse the NOx reaction, restoring O2 and N2.
the truck's computer monitors conditions, and expends DEF as needed.
Trivia point: a mechanic I know has received several DuraMax engines for non-warranteed rebuilds, due to operator error.
Apparently, the urea reservoir in a Chevy is under the hood, and people have been loading that tank with washer fluid. Methanol is not interchangeable with urea, so the proper reaction does not occur, and the truck's computer subsequently sends very wrong fueling instructions to the engine, which results in catastrophic failure.
Cruel though it may be, my first thought was, "always knew them chevy boys were dense"