@@ -22,13 +22,13 @@ void procfsOpen(OpenCommand *ocmd) {
22
22
int res = resolve (ocmd -> path , & pid );
23
23
if (res < 0 ) {
24
24
ocmd -> header .header .status = - ENOENT ;
25
- luxSendDependency (ocmd );
25
+ luxSendKernel (ocmd );
26
26
return ;
27
27
}
28
28
29
29
if (res & RESOLVE_DIRECTORY ) {
30
30
ocmd -> header .header .status = - EISDIR ;
31
- luxSendDependency (ocmd );
31
+ luxSendKernel (ocmd );
32
32
return ;
33
33
}
34
34
@@ -37,7 +37,7 @@ void procfsOpen(OpenCommand *ocmd) {
37
37
else
38
38
ocmd -> header .header .status = 0 ;
39
39
40
- luxSendDependency (ocmd );
40
+ luxSendKernel (ocmd );
41
41
}
42
42
43
43
void procfsStat (StatCommand * scmd ) {
@@ -48,7 +48,7 @@ void procfsStat(StatCommand *scmd) {
48
48
int res = resolve (scmd -> path , & pid );
49
49
if (res < 0 ) {
50
50
scmd -> header .header .status = - ENOENT ;
51
- luxSendDependency (scmd );
51
+ luxSendKernel (scmd );
52
52
return ;
53
53
}
54
54
@@ -62,7 +62,7 @@ void procfsStat(StatCommand *scmd) {
62
62
else if (res == RESOLVE_CPU ) scmd -> buffer .st_size = strlen (sysinfo -> cpu );
63
63
else scmd -> buffer .st_size = 8 ;
64
64
65
- luxSendDependency (scmd );
65
+ luxSendKernel (scmd );
66
66
}
67
67
68
68
void procfsRead (RWCommand * rcmd ) {
@@ -73,15 +73,15 @@ void procfsRead(RWCommand *rcmd) {
73
73
int file = resolve (rcmd -> path , & pid );
74
74
if (file < 0 ) {
75
75
rcmd -> header .header .status = - ENOENT ;
76
- luxSendDependency (rcmd );
76
+ luxSendKernel (rcmd );
77
77
return ;
78
78
}
79
79
80
80
RWCommand * res = calloc (1 , sizeof (RWCommand ) + rcmd -> length );
81
81
if (!res ) {
82
82
rcmd -> header .header .status = - ENOMEM ;
83
83
rcmd -> length = 0 ;
84
- luxSendDependency (rcmd );
84
+ luxSendKernel (rcmd );
85
85
return ;
86
86
}
87
87
@@ -117,15 +117,15 @@ void procfsRead(RWCommand *rcmd) {
117
117
default :
118
118
rcmd -> header .header .status = - ENOENT ;
119
119
rcmd -> length = 0 ;
120
- luxSendDependency (rcmd );
120
+ luxSendKernel (rcmd );
121
121
free (res );
122
122
return ;
123
123
}
124
124
125
125
if (rcmd -> position >= size ) {
126
126
rcmd -> header .header .status = - EOVERFLOW ;
127
127
rcmd -> length = 0 ;
128
- luxSendDependency (rcmd );
128
+ luxSendKernel (rcmd );
129
129
free (res );
130
130
return ;
131
131
}
@@ -139,6 +139,6 @@ void procfsRead(RWCommand *rcmd) {
139
139
res -> header .header .status = truelen ;
140
140
res -> header .header .length += truelen ;
141
141
res -> position += truelen ;
142
- luxSendDependency (res );
142
+ luxSendKernel (res );
143
143
free (res );
144
144
}
0 commit comments