Let us call $f(x)$ for the moment $y$. Then rewriting what you have, we get
$$x \cdot \frac{dy}{dx} - y = 0.$$
This is a first order total differential equation (total because no partial derivatives are involved, and first order because the highest degree of the derivative(s) involved is one).
It is linear because the coefficient of $\frac{dy}{dx}$ is a function of $x$.
If you know the method of separation of variables, you can solve your differential equation like this. Write it as
$$x \cdot \frac{dy}{dx} = y.$$
Then by seperation of variables, we have that
$$\frac{1}{y} dy = \frac{1}{x} dx,$$
hence integrating both sides we get that
$$\ln|y| = \ln|x| + C,$$ where $C$ is some constant. Taking the exponential of both sides gives
$$y = e^Cx.$$
Hence the general class of functions that satisfy your relation in the question are the straight lines through the origin of positive slope (because $e^C$ is always positive).
This post may be of interest to you, the answers given here why the method of separation of variables is justified.