Lines Matching refs:fds

1935 			struct file_descriptor* descriptor = context->fds[i];
3375 kprintf(" used fds:\t%" B_PRIu32 "\n", context->num_used_fds);
3376 kprintf(" max fds:\t%" B_PRIu32 "\n", context->table_size);
3384 struct file_descriptor* fd = context->fds[i];
3638 if (struct file_descriptor* descriptor = context->fds[i]) {
3647 free(context->fds);
4902 struct file_descriptor* descriptor = context->fds[i];
4906 context->fds[i] = NULL;
4947 context->fds = (file_descriptor**)malloc(
4951 if (context->fds == NULL) {
4956 context->select_infos = (select_info**)(context->fds + tableSize);
4959 memset(context->fds, 0, sizeof(struct file_descriptor*) * tableSize
4982 struct file_descriptor* descriptor = parentContext->fds[i];
4992 context->fds[i] = descriptor;
5054 // If the tables shrink, make sure none of the fds being dropped are in use.
5057 if (context->fds[i])
5063 file_descriptor** oldFDs = context->fds;
5075 context->fds = newFDs;
5076 context->select_infos = (select_info**)(context->fds + newSize);
5083 memcpy(context->fds, oldFDs, sizeof(void*) * toCopy);
5090 memset(context->fds + oldSize, 0, sizeof(void*) * (newSize - oldSize));
5300 sFileDescriptorCache = create_object_cache("vfs fds",
8241 && (descriptor = context->fds[slot]) == NULL) {
9547 int fds[2];
9548 fds[0] = open_vnode(vnode, O_RDONLY, false);
9549 fds[1] = open_vnode(vnode, O_WRONLY, false);
9551 FDCloser closer0(fds[0], false);
9552 FDCloser closer1(fds[1], false);
9554 status = (fds[0] >= 0 ? (fds[1] >= 0 ? B_OK : fds[1]) : fds[0]);
9559 || user_memcpy(userFDs, fds, sizeof(fds)) != B_OK) {