Purpose of writ; who may prosecute. The writ of habeas corpus ad subjiciendum is the writ designated in ORS 34.310 to 34.730, and every other writ of habeas corpus is abolished. Every person imprisoned or otherwise restrained of liberty, within this state, except in the cases specified in ORS 34.330, may prosecute a writ of habeas corpus to inquire into the cause of such imprisonment or restraint, and if illegal, to be delivered therefrom

ORS 34.310 — under Chapter 34.

ORS 34.310

[Repealed or reserved.]