2010-02-17 02:12:00 +01:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2008 The Android Open Source Project
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _PROCESS_H
|
|
|
|
#define _PROCESS_H
|
|
|
|
|
2017-10-07 02:02:53 +02:00
|
|
|
namespace android {
|
|
|
|
namespace vold {
|
2014-09-22 09:57:40 +02:00
|
|
|
|
2021-03-04 13:21:24 +01:00
|
|
|
int KillProcessesWithOpenFiles(const std::string& path, int signal, bool killFuseDaemon = true);
|
2021-04-30 10:53:07 +02:00
|
|
|
int KillProcessesWithTmpfsMounts(const std::string& path, int signal);
|
2010-02-17 02:12:00 +01:00
|
|
|
|
2017-10-07 02:02:53 +02:00
|
|
|
} // namespace vold
|
|
|
|
} // namespace android
|
2014-09-22 09:57:40 +02:00
|
|
|
|
2010-02-17 02:12:00 +01:00
|
|
|
#endif
|