## KernelDB.find_by_filename()


Find all locations for a kernel by filename.


Usage

``` python
KernelDB.find_by_filename(filename)
```


Checks both the canonical filename in the `kernels` table and the actual filename in the location path. This handles the same content stored under different names (for example `jup365.bsp` and `jup365_19900101_20500101.bsp`).

Superseded kernels (`kernels.superseded_by IS NOT NULL`) are excluded. The comparison is case-insensitive (C8): kernel names are treated identically on case-insensitive (HFS+, APFS) and case-sensitive (ext4, NTFS) filesystems. Identity is the SHA-256 anyway, and name casing is metadata.

The order is deterministic: by mission, then most recently scanned location, then path. Callers see stable results even when several non-superseded kernels share a filename.


## Parameters


`filename: str`  
The kernel's basename.


## Returns


`list[dict]`  
One dict per location with the keys `sha256`, `abs_path`, `mission`, `kernel_type` and `size_bytes`.
