Lines Matching refs:filename
90 int host_dev_bind(int devnum, char *filename) argument
110 if (!filename)
117 fname = strdup(filename);
123 fd = os_open(filename, OS_O_RDWR);
125 printf("Failed to access host backing file '%s'\n", filename);
137 host_dev->filename = fname;
154 int host_dev_bind(int dev, char *filename) argument
164 if (host_dev->filename)
165 free(host_dev->filename);
166 if (filename && *filename) {
167 host_dev->filename = strdup(filename);
169 host_dev->filename = NULL;
173 host_dev->fd = os_open(host_dev->filename, OS_O_RDWR);
176 host_dev->filename);