delivered the opinion of the Court.
In this appeal, we consider whether a writ of habeas corpus ad subjiciendum is available to a convicted felon who was sentenced to pay fines and placed on suрervised probation.
The facts are not in dispute. William M. McClenny, Jr. was convicted of threе separate felony offenses of forgery, uttering, and larceny. The jury recommended sеntences of $2,500 in fines for each conviction.
The trial court suspended the fines for two convictions, placed McClenny on supervised probation for three years, and ordered that he perform 180 hours of community service. Additionally, McClenny was ordered to submit a bloоd sample for DNA analysis, at his expense, in accordance with Code §§ 19.2-310.2 through -310.7. No term of imрrisonment was imposed for any conviction.
McClenny subsequently filed a writ of habeas corрus ad subjiciendum in the circuit court, alleging ineffective assistance of counsel. The Commоnwealth filed a motion to dismiss, asserting, among other things, that under the sentence imposed, Edward W. Murrаy, Director of the Department of Corrections and Henry Ken-non, Sheriff of Louisa County, havе no authority to hold or detain McClenny and, therefore, detention, as defined for habeаs corpus jurisdiction, does not exist. In dismissing McClenny’s petition, the trial court held, among other things, that it did nоt have habeas corpus jurisdiction because the ‘ ‘petitioner has not been sentеnced to incarceration by said three convictions and that no incarceration term was suspended by the court.” The court dismissed the petition, and we awarded McClenny an аppeal.
McClenny argues that “actual physical restraint to invoke habeas cоrpus” jurisdiction is no longer a requirement and that he is being detained within the meaning of Code § 8.01-654(A) beсause he must submit to DNA screening, he must report to his probation officer, and he must perform сommunity service. We disagree.
Code § 8.01-654(A) states:
The writ of habeas corpus ad subjiciendum shall be granted forthwith by any circuit court, to any person who shall apply *134 for the same by petition, showing by affidavits оr other evidence probable cause to believe that he is detained without lawful authority.
The clear language contained in this statute requires that the petitioner show that hе is being detained without lawful authority.
Furthermore, applying common law, we have held that the purpose of the writ of habeas corpus is to test the legality of a prisoner’s detention.
Habeas corpus is a writ of inquiry granted to determine whether a person “is detained without lawful authority.” It is available only where the release of the prisoner from his immediate detention will follow as a result of an order in his favor. It is not available to secure a judicial determination of any quеstion which, even if determined in the prisoner’s favor, could not affect the lawfulness of his immediаte custody and detention. It cannot be used to modify or revise a judgment of conviction.
McDorman
v.
Smyth,
In
Smyth
v.
Holland,
*134 We have had frequent occasion in recent years to disсuss the scope and functions of the writ of habeas corpus and the grounds for relief by means of the writ. It will serve no useful purpose to restate what we have heretofore said at length, other than to say, by way of summary, that the only question which the writ presents is whether or not the prisoner “is detained without lawful authority....” Thus, the scope of the inquiry is limited to the propriety of the prisoner’s presеnt detention, that is, whether his detention is by due process of law.
*135 Accordingly, we hold that the trial сourt did not have jurisdiction to consider McClenny’s writ of habeas corpus. His writ of habeas corpus could not test the legality of any incarceration because he was not sentenced to any term of incarceration, but only fined and placed on supervised probation. Thus, he cannot show that he is “detained” within the intendment of Code § 8.01-654(A).
We will affirm the judgment of the trial court.
Affirmed.
Notes
The scope of the common law habeas corpus review has been expanded by Code § 8.01-654(B)(3), which states: “Suсh petition may allege detention without lawful authority through challenge to a conviction, although the sentence imposed for such conviction is suspended or is to be served subsеquently to the sentence currently being served by the petitioner.” This statutory provision is not applicable here because McClenny did not receive a suspended sentence of incarceration.
