Skip to content

Commit

Permalink
Define a thrift structure for Bsp Kmod Files
Browse files Browse the repository at this point in the history
Summary:
Formally defining in platform_manager_config.thrift as a code reference.
This will get written as part of BSP. PM will read them to unload kmods for the installed rpm.

Example json file for Tahan

{P1605773412}

Reviewed By: tao-ren

Differential Revision: D63276490

fbshipit-source-id: 905c19b38b2b56b5a384c45f524eeada6724da0b
  • Loading branch information
Justin Kim authored and facebook-github-bot committed Sep 23, 2024
1 parent 90f8b8e commit d7e4e9a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions fboss/platform/platform_manager/platform_manager_config.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,19 @@ struct PmUnitVersion {
3: i16 productSubVersion;
}

// Defines thrift structure used for the Bsp Kmods file under /usr/local/{vendor}_bsp/...
// This file will be written during BSP development. PM will consume this file to unload
// specified kmods before exploration.
//
// `bspKmods`: Specify the list of names of bsp kmods on the installed rpm.
//
// `sharedKmods`: Specify the list of names of shared kmods on the installed rpm.
// These shared kmods will be unloaded after bspKmods.
struct BspKmodsFile {
1: list<string> bspKmods;
2: list<string> sharedKmods;
}

// Defines the whole Platform. The top level struct.
struct PlatformConfig {
// Name of the platform. Should match the name set in dmidecode
Expand Down

0 comments on commit d7e4e9a

Please sign in to comment.