Rename tell_fs to tell_vfs
This commit is contained in:
parent
4fe558f44f
commit
eec65ac664
@ -48,7 +48,7 @@ PUBLIC int do_exec()
|
|||||||
m.PM_FRAME = m_in.stack_ptr;
|
m.PM_FRAME = m_in.stack_ptr;
|
||||||
m.PM_FRAME_LEN = m_in.stack_bytes;
|
m.PM_FRAME_LEN = m_in.stack_bytes;
|
||||||
|
|
||||||
tell_fs(mp, &m);
|
tell_vfs(mp, &m);
|
||||||
|
|
||||||
/* Do not reply */
|
/* Do not reply */
|
||||||
return SUSPEND;
|
return SUSPEND;
|
||||||
|
@ -110,7 +110,7 @@ PUBLIC int do_fork()
|
|||||||
m.PM_PPROC = rmp->mp_endpoint;
|
m.PM_PPROC = rmp->mp_endpoint;
|
||||||
m.PM_CPID = rmc->mp_pid;
|
m.PM_CPID = rmc->mp_pid;
|
||||||
|
|
||||||
tell_fs(rmc, &m);
|
tell_vfs(rmc, &m);
|
||||||
|
|
||||||
/* Tell the tracer, if any, about the new child */
|
/* Tell the tracer, if any, about the new child */
|
||||||
if (rmc->mp_tracer != NO_TRACER)
|
if (rmc->mp_tracer != NO_TRACER)
|
||||||
@ -197,7 +197,7 @@ PUBLIC int do_srv_fork()
|
|||||||
m.PM_PPROC = rmp->mp_endpoint;
|
m.PM_PPROC = rmp->mp_endpoint;
|
||||||
m.PM_CPID = rmc->mp_pid;
|
m.PM_CPID = rmc->mp_pid;
|
||||||
|
|
||||||
tell_fs(rmc, &m);
|
tell_vfs(rmc, &m);
|
||||||
|
|
||||||
/* Tell the tracer, if any, about the new child */
|
/* Tell the tracer, if any, about the new child */
|
||||||
if (rmc->mp_tracer != NO_TRACER)
|
if (rmc->mp_tracer != NO_TRACER)
|
||||||
@ -303,7 +303,7 @@ int dump_core; /* flag indicating whether to dump core */
|
|||||||
m.m_type = dump_core ? PM_DUMPCORE : PM_EXIT;
|
m.m_type = dump_core ? PM_DUMPCORE : PM_EXIT;
|
||||||
m.PM_PROC = rmp->mp_endpoint;
|
m.PM_PROC = rmp->mp_endpoint;
|
||||||
|
|
||||||
tell_fs(rmp, &m);
|
tell_vfs(rmp, &m);
|
||||||
|
|
||||||
if (rmp->mp_flags & PRIV_PROC)
|
if (rmp->mp_flags & PRIV_PROC)
|
||||||
{
|
{
|
||||||
|
@ -159,9 +159,9 @@ PUBLIC int do_set()
|
|||||||
return(EINVAL);
|
return(EINVAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Send the request to FS */
|
/* Send the request to VFS */
|
||||||
tell_fs(rmp, &m);
|
tell_vfs(rmp, &m);
|
||||||
|
|
||||||
/* Do not reply until FS has processed the request */
|
/* Do not reply until VFS has processed the request */
|
||||||
return(SUSPEND);
|
return(SUSPEND);
|
||||||
}
|
}
|
||||||
|
@ -393,10 +393,10 @@ PUBLIC int do_reboot()
|
|||||||
check_sig(-1, SIGKILL, FALSE /* ksig*/); /* kill all users except init */
|
check_sig(-1, SIGKILL, FALSE /* ksig*/); /* kill all users except init */
|
||||||
sys_stop(INIT_PROC_NR); /* stop init, but keep it around */
|
sys_stop(INIT_PROC_NR); /* stop init, but keep it around */
|
||||||
|
|
||||||
/* Tell FS to reboot */
|
/* Tell VFS to reboot */
|
||||||
m.m_type = PM_REBOOT;
|
m.m_type = PM_REBOOT;
|
||||||
|
|
||||||
tell_fs(&mproc[VFS_PROC_NR], &m);
|
tell_vfs(&mproc[VFS_PROC_NR], &m);
|
||||||
|
|
||||||
return(SUSPEND); /* don't reply to caller */
|
return(SUSPEND); /* don't reply to caller */
|
||||||
}
|
}
|
||||||
|
@ -108,4 +108,4 @@ _PROTOTYPE( int no_sys, (void) );
|
|||||||
_PROTOTYPE( char *find_param, (const char *key) );
|
_PROTOTYPE( char *find_param, (const char *key) );
|
||||||
_PROTOTYPE( struct mproc *find_proc, (pid_t lpid) );
|
_PROTOTYPE( struct mproc *find_proc, (pid_t lpid) );
|
||||||
_PROTOTYPE( int pm_isokendpt, (int ep, int *proc) );
|
_PROTOTYPE( int pm_isokendpt, (int ep, int *proc) );
|
||||||
_PROTOTYPE( void tell_fs, (struct mproc *rmp, message *m_ptr) );
|
_PROTOTYPE( void tell_vfs, (struct mproc *rmp, message *m_ptr) );
|
||||||
|
@ -665,7 +665,7 @@ struct mproc *rmp; /* which process */
|
|||||||
m.m_type = PM_UNPAUSE;
|
m.m_type = PM_UNPAUSE;
|
||||||
m.PM_PROC = rmp->mp_endpoint;
|
m.PM_PROC = rmp->mp_endpoint;
|
||||||
|
|
||||||
tell_fs(rmp, &m);
|
tell_vfs(rmp, &m);
|
||||||
|
|
||||||
/* Also tell VM. */
|
/* Also tell VM. */
|
||||||
vm_notify_sig_wrapper(rmp->mp_endpoint);
|
vm_notify_sig_wrapper(rmp->mp_endpoint);
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* find_param: look up a boot monitor parameter
|
* find_param: look up a boot monitor parameter
|
||||||
* find_proc: return process pointer from pid number
|
* find_proc: return process pointer from pid number
|
||||||
* pm_isokendpt: check the validity of an endpoint
|
* pm_isokendpt: check the validity of an endpoint
|
||||||
* tell_fs: send a request to FS on behalf of a process
|
* tell_vfs: send a request to VFS on behalf of a process
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "pm.h"
|
#include "pm.h"
|
||||||
@ -118,9 +118,9 @@ PUBLIC int pm_isokendpt(int endpoint, int *proc)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*===========================================================================*
|
/*===========================================================================*
|
||||||
* tell_fs *
|
* tell_vfs *
|
||||||
*===========================================================================*/
|
*===========================================================================*/
|
||||||
PUBLIC void tell_fs(rmp, m_ptr)
|
PUBLIC void tell_vfs(rmp, m_ptr)
|
||||||
struct mproc *rmp;
|
struct mproc *rmp;
|
||||||
message *m_ptr;
|
message *m_ptr;
|
||||||
{
|
{
|
||||||
@ -129,7 +129,7 @@ message *m_ptr;
|
|||||||
int r;
|
int r;
|
||||||
|
|
||||||
if (rmp->mp_flags & FS_CALL)
|
if (rmp->mp_flags & FS_CALL)
|
||||||
panic("tell_fs: not idle: %d", m_ptr->m_type);
|
panic("tell_vfs: not idle: %d", m_ptr->m_type);
|
||||||
|
|
||||||
r = asynsend3(VFS_PROC_NR, m_ptr, AMF_NOREPLY);
|
r = asynsend3(VFS_PROC_NR, m_ptr, AMF_NOREPLY);
|
||||||
if (r != OK)
|
if (r != OK)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user