Files
chimera-gfx-Public/samples/lifecycle_probe/main.c
T
Chimera GFX release export a6037502d7
phase0-ci / build-and-audit (push) Successful in 2m14s
Publish Chimera GFX source
2026-09-03 03:27:14 +02:00

31 lines
846 B
C

/* SPDX-License-Identifier: GPL-3.0-or-later */
#include <stddef.h>
#include <unistd.h>
#ifndef CHIMERA_GFX_PS5_ALLOWED_FIRMWARE
#error "The exact firmware build gate is required"
#endif
#ifndef CHIMERA_GFX_LIFECYCLE_BUILD_ID
#error "A deterministic lifecycle build ID is required"
#endif
typedef struct notify_request {
char reserved[45];
char message[3075];
} notify_request_t;
int sceKernelSendNotificationRequest(int device, notify_request_t *request,
size_t size, int flags);
static notify_request_t request = {
.message = "Chimera GFX lifecycle " CHIMERA_GFX_LIFECYCLE_BUILD_ID
" fw " CHIMERA_GFX_PS5_ALLOWED_FIRMWARE};
int main(void) {
const int result =
sceKernelSendNotificationRequest(0, &request, sizeof(request), 0);
_exit(result == 0 ? 0 : 1);
}