| 1 | /*++ |
| 2 | |
| 3 | Copyright (c) Microsoft. All rights reserved. |
| 4 | |
| 5 | Module Name: |
| 6 | |
| 7 | lxfsshares.h |
| 8 | |
| 9 | Abstract: |
| 10 | |
| 11 | This file contains share names and paths that are consumed by both init |
| 12 | and the WSL service. |
| 13 | |
| 14 | --*/ |
| 15 | |
| 16 | #pragma once |
| 17 | |
| 18 | typedef struct _LXSS_SHARED_DIRECTORY |
| 19 | { |
| 20 | const char* Name; |
| 21 | const char* MountPoint; |
| 22 | } LXSS_SHARED_DIRECTORY, *PLXSS_SHARED_DIRECTORY; |
| 23 | |
| 24 | #define LXSS_LIB_PREFIX "/usr/lib/wsl" |
| 25 | #define LXSS_LIB_PATH LXSS_LIB_PREFIX "/lib" |
| 26 | #define LXSS_GPU_DRIVERS_PATH LXSS_LIB_PREFIX "/drivers" |
| 27 | #define LXSS_GPU_DRIVERS_SHARE "drivers" |
| 28 | #define LXSS_GPU_LIB_SHARE "lib" |
| 29 | #define LXSS_GPU_INBOX_LIB_SHARE LXSS_GPU_LIB_SHARE "_inbox" |
| 30 | #define LXSS_GPU_PACKAGED_LIB_SHARE LXSS_GPU_LIB_SHARE "_packaged" |
| 31 | |
| 32 | // |
| 33 | // Shared directories for GPU compute support. |
| 34 | // |
| 35 | |
| 36 | constexpr LXSS_SHARED_DIRECTORY g_gpuShares[] = {{LXSS_GPU_DRIVERS_SHARE, LXSS_GPU_DRIVERS_PATH}, {LXSS_GPU_LIB_SHARE, LXSS_LIB_PATH}}; |