Compare the three patterns:
كُلُّ طَالِبٍ مُجْتَهِدٌ — every student is hardworking. A singular indefinite mudaf-ilayh gives the distributive meaning “every.”
كُلُّ الْكِتَابِ مُفِيدٌ — the whole book is useful. A singular definite mudaf-ilayh gives the meaning “the whole.”
كُلُّ الطُّلَّابِ حَاضِرُونَ — all the students are present. A definite plural mudaf-ilayh gives the meaning “all.”