Lines Matching refs:cleanup_fn
130 static void attach_device(void (*cleanup_fn)(void), in attach_device()
135 dev_fd = SAFE_OPEN(cleanup_fn, dev, O_RDWR); in attach_device()
136 file_fd = SAFE_OPEN(cleanup_fn, file, O_RDWR); in attach_device()
142 tst_brkm(TBROK, cleanup_fn, in attach_device()
185 const char *tst_acquire_device(void (cleanup_fn)(void)) in tst_acquire_device()
191 tst_brkm(TBROK, cleanup_fn, "Device allready acquired"); in tst_acquire_device()
194 tst_brkm(TBROK, cleanup_fn, in tst_acquire_device()
203 SAFE_STAT(cleanup_fn, dev, &st); in tst_acquire_device()
206 tst_brkm(TBROK, cleanup_fn, in tst_acquire_device()
211 tst_brkm(TBROK | TERRNO, cleanup_fn, in tst_acquire_device()
219 tst_brkm(TBROK | TERRNO, cleanup_fn, in tst_acquire_device()
227 attach_device(cleanup_fn, dev_path, DEV_FILE); in tst_acquire_device()