A CIN consists of several routines. The routines are described by the .c file LabVIEW creates when you right-click the CIN on the block diagram and select Create .c File from the shortcut menu. Routines include CINRun, CINLoad, CINInit, CINAbort, CINSave, CINDispose, CINUnload, and CINProperties.
For most CINs, you need to write only the CINRun routine. The other routines are supplied mainly for special initialization needs, such as when your CIN is going to maintain information across calls and you want to preallocate or initialize global state information.
If you want to preallocate or initialize global state information, you need to understand more of how LabVIEW manages data and CINs.