Lines Matching refs:loopfd
1259 int loopfd, err = 0, res = -1;
1291 loopfd = open(loopname, O_RDWR);
1292 if (loopfd == -1) {
1296 if (ioctl(loopfd, LOOP_SET_FD, memfd)) {
1301 ioctl(loopfd, LOOP_CLR_FD, 0);
1303 if (ioctl(loopfd, LOOP_SET_FD, memfd)) {
1309 if (ioctl(loopfd, LOOP_GET_STATUS64, &info)) {
1317 if (ioctl(loopfd, LOOP_SET_STATUS64, &info)) {
1333 ioctl(loopfd, LOOP_CLR_FD, 0);
1335 close(loopfd);
1350 int loopfd, err = 0, res = -1;
1382 loopfd = open(loopname, O_RDWR);
1383 if (loopfd == -1) {
1387 if (ioctl(loopfd, LOOP_SET_FD, memfd)) {
1392 ioctl(loopfd, LOOP_CLR_FD, 0);
1394 if (ioctl(loopfd, LOOP_SET_FD, memfd)) {
1422 ioctl(loopfd, LOOP_CLR_FD, 0);
1424 close(loopfd);
3459 int loopfd = open(buf, O_RDWR);
3460 if (loopfd != -1) {
3461 ioctl(loopfd, LOOP_CLR_FD, 0);
3462 close(loopfd);