Wed 22 Jan 12:17:36 CET 2025
This commit is contained in:
parent
920d6b685b
commit
5b0aaf652b
|
@ -75,6 +75,10 @@ struct kobject *kobject_create_pipe(struct pipe *p)
|
||||||
return k;
|
return k;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef KERNEL_KOBJECT_EXT
|
||||||
|
#include "kernel_kobject_ext.c"
|
||||||
|
#endif
|
||||||
|
|
||||||
struct kobject *kobject_addref(struct kobject *k)
|
struct kobject *kobject_addref(struct kobject *k)
|
||||||
{
|
{
|
||||||
k->refcount++;
|
k->refcount++;
|
||||||
|
@ -115,6 +119,9 @@ struct kobject * kobject_copy( struct kobject *ksrc )
|
||||||
case KOBJECT_PIPE:
|
case KOBJECT_PIPE:
|
||||||
pipe_addref(ksrc->data.pipe);
|
pipe_addref(ksrc->data.pipe);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
/*ignore */
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return kdst;
|
return kdst;
|
||||||
|
@ -385,6 +392,9 @@ int kobject_size(struct kobject *kobject, int *dims, int n)
|
||||||
} else {
|
} else {
|
||||||
return KERROR_INVALID_REQUEST;
|
return KERROR_INVALID_REQUEST;
|
||||||
}
|
}
|
||||||
|
default:
|
||||||
|
/* invalid */
|
||||||
|
return KERROR_INVALID_REQUEST;
|
||||||
}
|
}
|
||||||
return KERROR_INVALID_REQUEST;
|
return KERROR_INVALID_REQUEST;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user