The c_open() function

Updated: October 28, 2024

Possibly the most complex function, c_open() performs the following:

  1. Find the target.
  2. Analyze the mode flag, and create/truncate as required.
  3. Bind the OCB and attributes structure.

We'll look at the individual sub-tasks listed above, and then delve into the code walkthrough for the c_open() call itself at the end.