// Copyright 2018 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include #include #include "kernel.h" #include "modules.h" #include SEM FileSysSem; // Global File System Semaphore // Called when a file system error has occurred. int FsError(int err_code) { printf("FsError: %d\n", err_code); backtrace_request(); return -1; } void* FsModule(int req, ...) { // Only respond to module initialization request. if (req == kInitMod) { FileSysSem = semCreate("fsys sem", 1, OS_FIFO); if (FileSysSem == NULL) return (void*)-1; } return NULL; }