# Linux Kernel Module Cheat

##### 17.8.2.1. seq_file single_open

If you have the entire read output upfront, `single_open` is an even more convenient version of seq_file:

    ./seq_file.sh
    echo $?

Outcome: the test passes:

    0

Sources:

- kernel_modules/seq_file_single_open.c

- rootfs_overlay/lkmc/seq_file_single_open.sh

This example produces a debugfs file that behaves like a file that contains:

    ab
    cd