mirror of
https://github.com/QuixiAI/nvdriver.git
synced 2026-12-06 14:38:47 +00:00
- Add root LICENSE (MIT License, Copyright (c) 2026 QuixiAI / Eric Hartford).
- Set license = "MIT" in workspace Cargo.toml and member crates (zero non-MIT dependencies).
- Update all kernel-open/ and tests/vm/ SPDX headers to MIT and EXPORT_SYMBOL_GPL -> EXPORT_SYMBOL.
- Use MODULE_LICENSE("Dual MIT/GPL") in Linux .ko modules so Linux modpost permits linking against the kernel's own EXPORT_SYMBOL_GPL symbols while keeping the repository source 100% MIT.
Closes #12.
22 lines
1.1 KiB
C
22 lines
1.1 KiB
C
/* SPDX-License-Identifier: MIT */
|
|
#ifndef NV_RS_NANO_TIMER_ADAPTER_H
|
|
#define NV_RS_NANO_TIMER_ADAPTER_H
|
|
#include <linux/types.h>
|
|
struct nv_rs_nano_timer;
|
|
typedef void (*nv_rs_nano_callback)(void *);
|
|
/* Callback payload/code must remain owned until successful destroy joins it.
|
|
* Caller serializes owner teardown: there may be no other API waiter or future
|
|
* start when destroy begins. The internal locks do not make free race-safe.
|
|
* start supports IRQ context; cancel/destroy require process context and must
|
|
* never be called synchronously from this timer's callback. */
|
|
void *nv_rs_nano_payload_alloc(size_t bytes);
|
|
void nv_rs_nano_payload_free(void *payload);
|
|
int nv_rs_nano_create(nv_rs_nano_callback callback, void *payload,
|
|
struct nv_rs_nano_timer **out);
|
|
int nv_rs_nano_create_jiffy(nv_rs_nano_callback callback, void *payload,
|
|
struct nv_rs_nano_timer **out);
|
|
int nv_rs_nano_start(struct nv_rs_nano_timer *,u64 ns);
|
|
int nv_rs_nano_cancel(struct nv_rs_nano_timer *,u32 *was_active);
|
|
int nv_rs_nano_destroy(struct nv_rs_nano_timer *);
|
|
#endif
|